summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorMike Pechkin <mpech@cvs.openbsd.org>2001-10-10 14:30:09 +0000
committerMike Pechkin <mpech@cvs.openbsd.org>2001-10-10 14:30:09 +0000
commit65952979b80dc5d263abe98fcafab87cd192fb0e (patch)
tree26b2cfc8d0575ba2c19fcd3ed36c272f9ce1b521 /sbin
parent20c584d37871139812455dba382adb3e14a986b4 (diff)
umask. spotted by form@
deraadt@, dhartmei@ ok
Diffstat (limited to 'sbin')
-rw-r--r--sbin/pflogd/pflogd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/pflogd/pflogd.c b/sbin/pflogd/pflogd.c
index 93abc75881e..42b99bec812 100644
--- a/sbin/pflogd/pflogd.c
+++ b/sbin/pflogd/pflogd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pflogd.c,v 1.7 2001/08/29 17:42:28 deraadt Exp $ */
+/* $OpenBSD: pflogd.c,v 1.8 2001/10/10 14:30:08 mpech Exp $ */
/*
* Copyright (c) 2001 Theo de Raadt
@@ -318,6 +318,8 @@ main(int argc, char **argv)
}
}
+ (void)umask(S_IRWXG | S_IRWXO);
+
signal(SIGTERM, sig_close);
signal(SIGINT, sig_close);
signal(SIGQUIT, sig_close);