summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authoralex <alex@FreeBSD.org>1998-07-08 22:42:08 +0000
committeralex <alex@FreeBSD.org>1998-07-08 22:42:08 +0000
commit175810b725ad9cf6eb1bc7fa8de9a1311083f1b3 (patch)
treeaed7c1b167a280ac82e6a50b30a176483ebe2e5f /etc
parent23cde3dbead2c413403b207da32868528f78027f (diff)
downloadFreeBSD-src-175810b725ad9cf6eb1bc7fa8de9a1311083f1b3.zip
FreeBSD-src-175810b725ad9cf6eb1bc7fa8de9a1311083f1b3.tar.gz
Detect user id 0 as a number instead of a string. String comparisons
fail to detect 00. PR: 7218 Submitted by: Michal Listos <mcl@Amnesiac.123.org> Niall Smart <rotel@indigo.ie>
Diffstat (limited to 'etc')
-rw-r--r--etc/security4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/security b/etc/security
index a39c389..ad7cc80 100644
--- a/etc/security
+++ b/etc/security
@@ -1,7 +1,7 @@
#!/bin/sh -
#
# @(#)security 5.3 (Berkeley) 5/28/91
-# $Id: security,v 1.23 1998/02/04 01:53:19 alex Exp $
+# $Id: security,v 1.24 1998/06/27 11:13:59 andreas Exp $
#
PATH=/sbin:/bin:/usr/bin
LC_ALL=C; export LC_ALL
@@ -50,7 +50,7 @@ fi
separator
echo "checking for uids of 0:"
-awk 'BEGIN {FS=":"} $3=="0" {print $1,$3}' /etc/master.passwd
+awk 'BEGIN {FS=":"} $3==0 {print $1,$3}' /etc/master.passwd
# show denied packets
if ipfw -a l 2>/dev/null | egrep "deny|reset|unreach" > $TMP; then
OpenPOWER on IntegriCloud