When listing all suid and sgid files list the file itself rather than

directorty contents.
This commit is contained in:
rich 1993-12-15 06:42:01 +00:00
parent 4e2fe971b0
commit 81a2c9ce58

View File

@ -1,7 +1,7 @@
#!/bin/sh -
#
# @(#)security 5.3 (Berkeley) 5/28/91
# $Id: security,v 1.3 1993/09/06 23:12:04 rgrimes Exp $
# $Id: security,v 1.4 1993/10/25 20:13:16 rgrimes Exp $
#
PATH=/sbin:/bin:/usr/bin
@ -21,7 +21,7 @@ echo "checking setuid files and devices:"
#
MP=`mount -t ufs | sed 's;/dev/;&r;' | awk '{ print $3 }'`
set $MP
ls -lgT `while test $# -ge 1; do
ls -dlgT `while test $# -ge 1; do
mount=$1
shift
find $mount -xdev -perm -u+s -or -perm -g+s | sort