diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-07-01 22:12:51 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-07-01 22:12:51 +0000 |
commit | 6a89e67301d02676aaa1b48c9c48d43ffdba8cf1 (patch) | |
tree | 6efd36fb3646b8c5367ff95633fa15f4f162ea82 /etc | |
parent | 9014957efe734ee27be1796dd31388ae72134286 (diff) |
We need the "/ 10" in the group writability check after all; marc@
Diffstat (limited to 'etc')
-rw-r--r-- | etc/security | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/security b/etc/security index ede7aa84d15..9e8b8c46a1f 100644 --- a/etc/security +++ b/etc/security @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: security,v 1.61 2003/07/01 21:52:39 millert Exp $ +# $OpenBSD: security,v 1.62 2003/07/01 22:12:50 millert Exp $ # from: @(#)security 8.1 (Berkeley) 6/9/93 # @@ -138,7 +138,7 @@ for i in $list ; do if [ -s $i ] ; then awk '{ if ($1 == "umask") { - if ($2 % 100 ~ /^[0145]/) + if ($2 % 100 / 10 ~ /^[0145]/) print "Root umask is group writable"; if ($2 % 10 ~ /^[0145]/) print "Root umask is other writable"; |