Hi. Since the addition of "umask 077;" in root's crontab for periodic scripts, everything is now run with this umask (obviously), including the *.local scripts which can be a problem for some. This diff should bring back the old behaviour while maintaining a 077 umask for the output log.
Of course one could add umask 022 in it's *.local script, but having it as a default seems better. -- Antoine Jacoutot Observatoire de Paris SIO - Centre de calcul (Bat 15) 5, Place Jules Janssen 92195 Meudon Cedex Tel : +33 (0)1.45.07.71.95 Index: daily =================================================================== RCS file: /cvs/src/etc/daily,v retrieving revision 1.55 diff -u -r1.55 daily --- daily 4 Oct 2006 17:46:34 -0000 1.55 +++ daily 25 Oct 2006 13:57:40 -0000 @@ -3,6 +3,8 @@ # $OpenBSD: daily,v 1.55 2006/10/04 17:46:34 deraadt Exp $ # From: @(#)daily 8.2 (Berkeley) 1/25/94 # +umask 022 + PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin bak=/var/backups Index: monthly =================================================================== RCS file: /cvs/src/etc/monthly,v retrieving revision 1.6 diff -u -r1.6 monthly --- monthly 12 Nov 2005 16:14:37 -0000 1.6 +++ monthly 25 Oct 2006 13:57:40 -0000 @@ -1,5 +1,6 @@ #!/bin/sh - # $OpenBSD: monthly,v 1.6 2005/11/12 16:14:37 jmc Exp $ +umask 022 if [ -f /etc/monthly.local ];then echo "" Index: weekly =================================================================== RCS file: /cvs/src/etc/weekly,v retrieving revision 1.17 diff -u -r1.17 weekly --- weekly 6 Oct 2006 04:50:31 -0000 1.17 +++ weekly 25 Oct 2006 13:57:40 -0000 @@ -2,6 +2,7 @@ # # $OpenBSD: weekly,v 1.17 2006/10/06 04:50:31 hugh Exp $ # +umask 022 PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/libexec export PATH