From 291b1c42d4721650b82e41bd30c766ce914af140 Mon Sep 17 00:00:00 2001 From: millert <> Date: Thu, 5 Apr 2001 18:47:00 +0000 Subject: [PATCH] Skip entries starting with '+' in duplicate user ID check so we don't get false positives for YP stuff. Closes PR 1755 --- src/etc/security | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/security b/src/etc/security index 67619302..d252437f 100644 --- a/src/etc/security +++ b/src/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."