summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2001-04-05 18:47:01 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2001-04-05 18:47:01 +0000
commitce65b637f14b4913d6d74228ab4ae9fee8021b5a (patch)
tree52babca86f55cb61e9fe461fa554e1b0b1e93a98 /etc
parent49b11c56ac3e5cb0ad8b608ecb32090035cb535f (diff)
Skip entries starting with '+' in duplicate user ID check so we don't
get false positives for YP stuff. Closes PR 1755
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 67619302570..d252437fe90 100644
--- a/etc/security
+++ b/etc/security
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: security,v 1.46 2001/03/25 04:50:27 millert Exp $
+# $OpenBSD: security,v 1.47 2001/04/05 18:47:00 millert Exp $
# from: @(#)security 8.1 (Berkeley) 6/9/93
#
@@ -70,7 +70,7 @@ if [ -s $OUTPUT ] ; then
column $OUTPUT
fi
-awk -F: '{ print $1 " " $3 }' $MP | sort -n +1 | tee $TMP1 |
+awk -F: '/^[^\+]/ { print $1 " " $3 }' $MP | sort -n +1 | tee $TMP1 |
uniq -d -f 1 | awk '{ print $2 }' > $TMP2
if [ -s $TMP2 ] ; then
echo "\n${MP} has duplicate user ID's."