summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/security2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/security b/etc/security
index 4cfba53..a0a2701 100644
--- a/etc/security
+++ b/etc/security
@@ -117,7 +117,7 @@ fi
separator
echo 'Checking for uids of 0:'
-n=$(awk -F: '$3==0 {print $1,$3}' /etc/master.passwd |
+n=$(awk -F: '/^#/ {next} $3==0 {print $1,$3}' /etc/master.passwd |
tee /dev/stderr |
sed -e '/^root 0$/d' -e '/^toor 0$/d' |
wc -l)
OpenPOWER on IntegriCloud