Browse Source

Skip entries starting with '+' in duplicate user ID check so we don't

get false positives for YP stuff.  Closes PR 1755
OPENBSD_2_9
millert 23 years ago
parent
commit
291b1c42d4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/etc/security

+ 2
- 2
src/etc/security View File

@ -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."


Loading…
Cancel
Save