X-Git-Url: http://cgit.sxemacs.org/?p=pkgusr;a=blobdiff_plain;f=usr%2Fbin%2Flist_suspicious_files_from;fp=usr%2Fbin%2Flist_suspicious_files_from;h=408d59f7fbddc3526c07de6385b96fcf5cc1fbb5;hp=3bf4d3a920dff55194c9840661f0991857c2a82a;hb=222d19f0a3e070995716ea83df13b3c0758c913a;hpb=90738259aed952673346ee99b8481ecc9469ce05 diff --git a/usr/bin/list_suspicious_files_from b/usr/bin/list_suspicious_files_from index 3bf4d3a..408d59f 100755 --- a/usr/bin/list_suspicious_files_from +++ b/usr/bin/list_suspicious_files_from @@ -19,20 +19,20 @@ fi ugname="$1" ugmatcher=(-false) -#test if find accepts ugname as a user, and append to ugmatcher if it does +# test if find accepts ugname as a user, and append to ugmatcher if it does if find / -maxdepth 0 -user "$ugname" >/dev/null 2>&1 ; then ugmatcher[${#ugmatcher[@]}]="-or" ugmatcher[${#ugmatcher[@]}]="-user" ugmatcher[${#ugmatcher[@]}]="$ugname" fi -#test if find accepts ugname as a group, and append to ugmatcher if it does +# test if find accepts ugname as a group, and append to ugmatcher if it does if find / -maxdepth 0 -group "$ugname" >/dev/null 2>&1 ; then ugmatcher[${#ugmatcher[@]}]="-or" ugmatcher[${#ugmatcher[@]}]="-group" ugmatcher[${#ugmatcher[@]}]="$ugname" fi -#if find accepted ugname as neither user nor group, then exit +# if find accepted ugname as neither user nor group, then exit if [ "${#ugmatcher[@]}" = 1 ]; then echo 1>&2 'find does not accept `'"$ugname'"' as group or user name' exit 1