Browse Source

Deal with leading whitespace in find output. Fixes problem of devices

showing up in the setuid list ;-)
OPENBSD_2_1
millert 28 years ago
parent
commit
0baab24189
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/etc/security

+ 3
- 3
src/etc/security View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/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 PATH=/sbin:/usr/sbin:/bin:/usr/bin
@ -393,8 +393,8 @@ if [ -s $OUTPUT ] ; then
printf "\n" printf "\n"
fi 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 if [ -s $TMP1 ] ; then
# Check to make sure uudecode isn't setuid. # Check to make sure uudecode isn't setuid.
if grep -w uudecode $TMP1 > /dev/null ; then if grep -w uudecode $TMP1 > /dev/null ; then


Loading…
Cancel
Save