From 74f44e362a44ec8e7c9125eecc2218ba47289d1f Mon Sep 17 00:00:00 2001 From: Frederic Lepied Date: Fri, 18 Nov 2005 11:10:45 +0000 Subject: fix bug #17921 by parsing correctly the output of ls. --- cron-sh/security_check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cron-sh/security_check.sh b/cron-sh/security_check.sh index dbcc0b2..d5f7c89 100755 --- a/cron-sh/security_check.sh +++ b/cron-sh/security_check.sh @@ -68,7 +68,7 @@ while IFS=: read username uid homedir; do for f in ${list} ; do file="${homedir}/${f}" if [[ -f "${file}" ]] ; then - res=`ls -LldcGn "${file}"` + res=`ls -LldcGn "${file}" | sed 's/ \{1,\}/:/g'` printf "${uid}:${username}:${file}:${res}\n" fi done -- cgit v1.2.1