Eliminate xargs in favor of find -exec {} +

This commit is contained in:
Dag-Erling Smørgrav 2008-02-03 00:33:05 +00:00
parent 2cb2359632
commit 43085e37e4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=175906

View File

@ -46,8 +46,7 @@ case "$daily_status_security_chksetuid_enable" in
MP=`mount -t ufs,zfs | awk '$0 !~ /no(suid|exec)/ { print $3 }'`
find -sx $MP /dev/null -type f \
\( -perm -u+x -or -perm -g+x -or -perm -o+x \) \
\( -perm -u+s -or -perm -g+s \) -print0 |
xargs -0 ls -liTd |
\( -perm -u+s -or -perm -g+s \) -exec ls -liTd \{\} \+ |
check_diff setuid - "${host} setuid diffs:"
rc=$?
;;