summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/server.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2000-05-31 09:06:52 +0000
committerbrian <brian@FreeBSD.org>2000-05-31 09:06:52 +0000
commit27d9c9b35acce3c82ed7bfbf0d2fdbcf77d60b7a (patch)
treece7a605e5bef7fb7bf649ad886892cfeb118de05 /usr.sbin/ppp/server.c
parentfbbc0a48e32714b77e16461fa9a4247d45e39574 (diff)
downloadFreeBSD-src-27d9c9b35acce3c82ed7bfbf0d2fdbcf77d60b7a.zip
FreeBSD-src-27d9c9b35acce3c82ed7bfbf0d2fdbcf77d60b7a.tar.gz
Don't use the umask to chmod local domain server sockets, use
the mask
Diffstat (limited to 'usr.sbin/ppp/server.c')
-rw-r--r--usr.sbin/ppp/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ppp/server.c b/usr.sbin/ppp/server.c
index 869d136..5bd0896 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;
}
OpenPOWER on IntegriCloud