=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/etc/Attic/security,v retrieving revision 1.62 retrieving revision 1.63 diff -u -r1.62 -r1.63 --- src/etc/Attic/security 2003/07/01 22:12:50 1.62 +++ src/etc/Attic/security 2003/07/03 23:05:42 1.63 @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: security,v 1.62 2003/07/01 22:12:50 millert Exp $ +# $OpenBSD: security,v 1.63 2003/07/03 23:05:42 millert Exp $ # from: @(#)security 8.1 (Berkeley) 6/9/93 # @@ -136,6 +136,9 @@ list="/etc/csh.cshrc /etc/csh.login ${rhome}/.cshrc ${rhome}/.login" for i in $list ; do if [ -s $i ] ; then + if egrep -q '[[:space:]]*umask[[:space:]]' $i ; then + umaskset=yes + fi awk '{ if ($1 == "umask") { if ($2 % 100 / 10 ~ /^[0145]/) @@ -143,11 +146,7 @@ if ($2 % 10 ~ /^[0145]/) print "Root umask is other writable"; } - }' < $i > $TMP3 - if [ -s $TMP3 ]; then - umaskset=yes - cat $TMP3 >> $OUTPUT - fi + }' < $i >> $OUTPUT SAVE_PATH=$PATH unset PATH /bin/csh -f -s << end-of-csh > /dev/null 2>&1