diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-01-03 13:28:03 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-01-03 13:28:03 +0000 |
commit | 5bd70d3526e59e885fc4ff10cbde91aba128d285 (patch) | |
tree | c01815c56379629089586f0fc31a8d95937390c1 /usr.sbin/bgpd/control.c | |
parent | e0f87a32733320338c723c6085342f34acc87ce3 (diff) |
fix umask, noticed by theo
Diffstat (limited to 'usr.sbin/bgpd/control.c')
-rw-r--r-- | usr.sbin/bgpd/control.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/control.c b/usr.sbin/bgpd/control.c index 349db058783..afec020086d 100644 --- a/usr.sbin/bgpd/control.c +++ b/usr.sbin/bgpd/control.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control.c,v 1.3 2004/01/02 09:02:50 henning Exp $ */ +/* $OpenBSD: control.c,v 1.4 2004/01/03 13:28:02 henning Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -48,7 +48,7 @@ control_init(void) return (-1); } - old_umask = umask(S_IWGRP|S_IWOTH|S_IROTH|S_IXOTH); + old_umask = umask(S_IXUSR|S_IXGRP|S_IWOTH|S_IROTH|S_IXOTH); bzero(&sun, sizeof(sun)); sun.sun_family = AF_UNIX; strlcpy(sun.sun_path, SOCKET_NAME, sizeof(sun.sun_path)); |