summaryrefslogtreecommitdiff
path: root/etc/security
diff options
context:
space:
mode:
authorjdolecek <jdolecek@NetBSD.org>2004-02-09 09:04:13 +0000
committerjdolecek <jdolecek@NetBSD.org>2004-02-09 09:04:13 +0000
commitba30c144ea1e00987b2d19af478067d1d20e86fe (patch)
tree0ef9d485ddd8c0376b6914a82c51471da486cf40 /etc/security
parentd2b90882d520a2c72c164c187c53b0307eba962a (diff)
add missing && in the home directory group writability condition;
gawk somehow coped even without (defaults to && ?), but nawk printed bogus warnings (defaults to || ?)
Diffstat (limited to 'etc/security')
-rw-r--r--etc/security4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/security b/etc/security
index 85d8aa493a1..3b2853c486d 100644
--- a/etc/security
+++ b/etc/security
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $NetBSD: security,v 1.87 2003/11/19 20:28:19 jhawk Exp $
+# $NetBSD: security,v 1.88 2004/02/09 09:04:13 jdolecek Exp $
# from: @(#)security 8.1 (Berkeley) 6/9/93
#
@@ -482,7 +482,7 @@ if checkyesno check_homes; then
awk -v "usergroups=$permit_usergroups" '
$1 != $4 && $4 != "root" \
{ print "user " $1 " home directory is owned by " $4 }
- $2 ~ /^-....w/ (!usergroups || $5 != $1) \
+ $2 ~ /^-....w/ && (!usergroups || $5 != $1) \
{ print "user " $1 " home directory is group writable" }
$2 ~ /^-.......w/ \
{ print "user " $1 " home directory is other writable" }' \