diff options
author | 1996-07-04 05:46:54 +0000 | |
---|---|---|
committer | 1996-07-04 05:46:54 +0000 | |
commit | 621f7fe455a0a22fccd9172a966fbe05566e74bb (patch) | |
tree | fd9009b2845cfd92566b2118f18415f0d791b85c | |
parent | Integrated 4.4Lite2 source (diff) | |
download | wireguard-openbsd-621f7fe455a0a22fccd9172a966fbe05566e74bb.tar.xz wireguard-openbsd-621f7fe455a0a22fccd9172a966fbe05566e74bb.zip |
Fix bogon in import
-rw-r--r-- | usr.sbin/lpr/lpd/lpd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/lpr/lpd/lpd.c b/usr.sbin/lpr/lpd/lpd.c index 47c4d8b9551..5cd07cc9601 100644 --- a/usr.sbin/lpr/lpd/lpd.c +++ b/usr.sbin/lpr/lpd/lpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lpd.c,v 1.4 1996/07/04 05:41:54 tholo Exp $ */ +/* $OpenBSD: lpd.c,v 1.5 1996/07/04 05:46:54 tholo Exp $ */ /* $NetBSD: lpd.c,v 1.7 1996/04/24 14:54:06 mrg Exp $ */ /* @@ -178,15 +178,14 @@ main(argc, argv) */ startup(); (void) unlink(_PATH_SOCKETNAME); - (void) umask(07); funix = socket(AF_UNIX, SOCK_STREAM, 0); if (funix < 0) { syslog(LOG_ERR, "socket: %m"); exit(1); } - (void) umask(0); #define mask(s) (1 << ((s) - 1)) omask = sigblock(mask(SIGHUP)|mask(SIGINT)|mask(SIGQUIT)|mask(SIGTERM)); + (void) umask(07); signal(SIGHUP, mcleanup); signal(SIGINT, mcleanup); signal(SIGQUIT, mcleanup); @@ -201,6 +200,7 @@ main(argc, argv) syslog(LOG_ERR, "ubind: %m"); exit(1); } + (void) umask(0); sigsetmask(omask); FD_ZERO(&defreadfds); FD_SET(funix, &defreadfds); |