summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1996-11-23 19:10:43 +0000
committermillert <millert@openbsd.org>1996-11-23 19:10:43 +0000
commit930106feaeb7796c8ec5a7edb188dcf2c7dd4e3d (patch)
tree22c0498b8d35b38467539eac865f5a8be7870428
parent64 bit clean (diff)
downloadwireguard-openbsd-930106feaeb7796c8ec5a7edb188dcf2c7dd4e3d.tar.xz
wireguard-openbsd-930106feaeb7796c8ec5a7edb188dcf2c7dd4e3d.zip
Deal with leading whitespace in find output. Fixes problem of devices
showing up in the setuid list ;-)
-rw-r--r--etc/security6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/security b/etc/security
index e2f5d980e5b..464981e2291 100644
--- a/etc/security
+++ b/etc/security
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: security,v 1.11 1996/10/22 07:58:30 tholo Exp $
+# $OpenBSD: security,v 1.12 1996/11/23 19:10:43 millert Exp $
#
PATH=/sbin:/usr/sbin:/bin:/usr/bin
@@ -393,8 +393,8 @@ if [ -s $OUTPUT ] ; then
printf "\n"
fi
-# Display any changes in the setuid file list.
-egrep -v '^[0-9]+ +[0-9]+ +[bc]' $LIST > $TMP1
+# Display any changes in the setuid/setgid file list.
+egrep -v '^ *[0-9]+ +[0-9]+ +[bc]' $LIST > $TMP1
if [ -s $TMP1 ] ; then
# Check to make sure uudecode isn't setuid.
if grep -w uudecode $TMP1 > /dev/null ; then