From 27d9c9b35acce3c82ed7bfbf0d2fdbcf77d60b7a Mon Sep 17 00:00:00 2001 From: brian Date: Wed, 31 May 2000 09:06:52 +0000 Subject: [PATCH] Don't use the umask to chmod local domain server sockets, use the mask --- usr.sbin/ppp/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/ppp/server.c b/usr.sbin/ppp/server.c index 869d1367d548..5bd089636a25 100644 --- a/usr.sbin/ppp/server.c +++ b/usr.sbin/ppp/server.c @@ -186,7 +186,7 @@ server_LocalOpen(struct bundle *bundle, const char *name, mode_t mask) int s; if (server.rm && !strcmp(server.rm, name)) { - if (chmod(server.rm, mask)) + if (chmod(server.rm, 0777 & ~mask)) log_Printf(LogERROR, "Local: chmod: %s\n", strerror(errno)); return 0; }