diff options
author | bitblt <bitblt@cvs.openbsd.org> | 1996-09-20 20:35:38 +0000 |
---|---|---|
committer | bitblt <bitblt@cvs.openbsd.org> | 1996-09-20 20:35:38 +0000 |
commit | 3305c18fad785727bd06f323f730608d33e92b66 (patch) | |
tree | b4483985875d9a52006cda3b8bdba4304acfc3d5 | |
parent | f6614b32e50a09678042ce0e251150b6b854500d (diff) |
names of set-uid files are no longer passed to a shell.
Thanks to deraadt for pointing out the -ls flag on find.
-rw-r--r-- | etc/security | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/security b/etc/security index e66c85f29dc..f0b0dd7d060 100644 --- a/etc/security +++ b/etc/security @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: security,v 1.9 1996/09/16 19:40:27 deraadt Exp $ +# $OpenBSD: security,v 1.10 1996/09/20 20:35:37 bitblt Exp $ # PATH=/sbin:/usr/sbin:/bin:/usr/bin @@ -380,8 +380,8 @@ pending="\nChecking setuid/setgid files and devices:\n" (find / \( ! -fstype local -o -fstype fdesc -o -fstype kernfs \ -o -fstype procfs \) -a -prune -o \ -type f -a \( -perm -u+s -o -perm -g+s \) -print -o \ - ! -type d -a ! -type f -a ! -type l -a ! -type s -print | \ -sort | sed -e 's/^/ls -ldgT /' | sh > $LIST) 2> $OUTPUT + ! -type d -a ! -type f -a ! -type l -a ! -type s -ls | \ +sort > $LIST) 2> $OUTPUT # Display any errors that occurred during system file walk. if [ -s $OUTPUT ] ; then |