From f93906164e63560c0b7cd4c2943e6eb7eed7b690 Mon Sep 17 00:00:00 2001 From: bitblt <> Date: Fri, 20 Sep 1996 20:35:37 +0000 Subject: [PATCH] names of set-uid files are no longer passed to a shell. Thanks to deraadt for pointing out the -ls flag on find. --- src/etc/security | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/etc/security b/src/etc/security index e66c85f2..f0b0dd7d 100644 --- a/src/etc/security +++ b/src/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