[Debtags-commits] [svn] r1927 - in daemon: . src
Enrico Zini
enrico at costa.debian.org
Mon Sep 18 18:34:57 UTC 2006
Author: enrico
Date: Mon Sep 18 18:34:54 2006
New Revision: 1927
Modified:
daemon/ (props changed)
daemon/src/debtagsd.cpp
Log:
r3367 at viaza: enrico | 2006-09-18 20:33:20 +0200
Make the socket world-writable
Modified: daemon/src/debtagsd.cpp
==============================================================================
--- daemon/src/debtagsd.cpp (original)
+++ daemon/src/debtagsd.cpp Mon Sep 18 18:34:54 2006
@@ -1,6 +1,7 @@
#include <string>
#include <sys/types.h>
+#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/un.h>
@@ -57,10 +58,8 @@
if (bind(sock, (struct sockaddr*)&name, size) == -1)
throw wibble::exception::System("binding master server socket to " + pathname);
-#if 0
- if (chmod(file.c_str(), 0666) == -1)
- throw SystemException(errno, "making socket " + file + " world-writable");
-#endif
+ if (chmod(pathname.c_str(), 0666) == -1)
+ throw wibble::exception::System("making socket " + pathname + " world-writable");
if (listen(sock, 256) == -1)
throw wibble::exception::System("invoking listen on master server socket " + pathname);
More information about the Debtags-commits
mailing list