From d865d04651f5563c2b3257a8f2073c9eac5fcfe0 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 21 Jun 2005 10:16:33 +0000 Subject: * move socket and pid file to its own directory /var/run/avahi * create /var/run/avahi securely git-svn-id: file:///home/lennart/svn/public/avahi/trunk@133 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-daemon/simple-protocol.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'avahi-daemon/simple-protocol.c') diff --git a/avahi-daemon/simple-protocol.c b/avahi-daemon/simple-protocol.c index 6eaef99..8bd8da4 100644 --- a/avahi-daemon/simple-protocol.c +++ b/avahi-daemon/simple-protocol.c @@ -41,8 +41,7 @@ #define BUFFER_SIZE (10*1024) -#define UNIX_SOCKET_PATH "/tmp/avahi" -#define UNIX_SOCKET UNIX_SOCKET_PATH"/socket" +#define UNIX_SOCKET AVAHI_RUNTIME_DIR "/socket" #define CLIENTS_MAX 50 @@ -378,11 +377,6 @@ int simple_protocol_setup(GMainContext *c) { u = umask(0000); - if (mkdir(UNIX_SOCKET_PATH, 0755) < 0 && errno != EEXIST) { - avahi_log_warn("mkdir(): %s", strerror(errno)); - goto fail; - } - if ((server->fd = socket(PF_LOCAL, SOCK_STREAM, 0)) < 0) { avahi_log_warn("socket(PF_LOCAL, SOCK_STREAM, 0): %s", strerror(errno)); goto fail; -- cgit