waffle

user and group backend daemon
git clone git://git.2f30.org/waffle.git
Log | Files | Refs | LICENSE

commit e055b8b29f442598106e75822b5ee16d36364c10
parent cce01d4a6904e17437ac879552587f22d60b73ed
Author: sin <sin@2f30.org>
Date:   Sun Mar  8 12:00:29 +0000

Remember to chmod socket to 0666

Diffstat:
waffle.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/waffle.c b/waffle.c @@ -1,6 +1,7 @@ #include <sys/select.h> #include <sys/signalfd.h> #include <sys/socket.h> +#include <sys/stat.h> #include <sys/types.h> #include <sys/un.h> #include <errno.h> @@ -43,6 +44,9 @@ serv_listen(const char *name) if (r < 0) logerr("bind %s: %s\n", name, strerror(errno)); + if (chmod(name, 0666) < 0) + logerr("chmod %s: %s\n", name, strerror(errno)); + r = listen(fd, 5); if (r < 0) logerr("listen: %s\n", strerror(errno));