From 43085e37e4783a0064ef8ffeeaa3498fc0a92a0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Sun, 3 Feb 2008 00:33:05 +0000 Subject: [PATCH] Eliminate xargs in favor of find -exec {} + --- etc/periodic/security/100.chksetuid | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/etc/periodic/security/100.chksetuid b/etc/periodic/security/100.chksetuid index 451c6b604504..5b93b2043dc0 100755 --- a/etc/periodic/security/100.chksetuid +++ b/etc/periodic/security/100.chksetuid @@ -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=$? ;;