diff options
author | 2006-10-26 12:20:55 +0000 | |
---|---|---|
committer | 2006-10-26 12:20:55 +0000 | |
commit | 6e67fba844a0cd5b66333bbeb01920eaaad6d9ab (patch) | |
tree | ec07ed897f02b224f2c68409f03a87fad35d415b | |
parent | eep! unbreak. (diff) | |
download | wireguard-openbsd-6e67fba844a0cd5b66333bbeb01920eaaad6d9ab.tar.xz wireguard-openbsd-6e67fba844a0cd5b66333bbeb01920eaaad6d9ab.zip |
Force umask to 022 so we don't heritate 077 from root's crontab command
(output logs are still umask 077)
"i think this is right" deraadt@
-rw-r--r-- | etc/daily | 4 | ||||
-rw-r--r-- | etc/monthly | 3 | ||||
-rw-r--r-- | etc/weekly | 3 |
3 files changed, 7 insertions, 3 deletions
diff --git a/etc/daily b/etc/daily index 2f9c8f89c94..2d8f3465b06 100644 --- a/etc/daily +++ b/etc/daily @@ -1,8 +1,10 @@ #!/bin/sh - # -# $OpenBSD: daily,v 1.55 2006/10/04 17:46:34 deraadt Exp $ +# $OpenBSD: daily,v 1.56 2006/10/26 12:20:55 ajacoutot Exp $ # From: @(#)daily 8.2 (Berkeley) 1/25/94 # +umask 022 + PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin bak=/var/backups diff --git a/etc/monthly b/etc/monthly index 910128c0da9..8b82ef0cb9b 100644 --- a/etc/monthly +++ b/etc/monthly @@ -1,5 +1,6 @@ #!/bin/sh - -# $OpenBSD: monthly,v 1.6 2005/11/12 16:14:37 jmc Exp $ +# $OpenBSD: monthly,v 1.7 2006/10/26 12:20:55 ajacoutot Exp $ +umask 022 if [ -f /etc/monthly.local ];then echo "" diff --git a/etc/weekly b/etc/weekly index 72a4c89bf0e..78530bbc765 100644 --- a/etc/weekly +++ b/etc/weekly @@ -1,7 +1,8 @@ #!/bin/sh - # -# $OpenBSD: weekly,v 1.17 2006/10/06 04:50:31 hugh Exp $ +# $OpenBSD: weekly,v 1.18 2006/10/26 12:20:55 ajacoutot Exp $ # +umask 022 PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/libexec export PATH |