aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2005-11-18 11:10:45 +0000
committerFrederic Lepied <flepied@mandriva.com>2005-11-18 11:10:45 +0000
commit74f44e362a44ec8e7c9125eecc2218ba47289d1f (patch)
tree6d3a55a6c4332abeada171ed5628fd59b75d3049 /cron-sh
parent21bdb4fb7083ef290f0ffe965350f389050abc76 (diff)
downloadmsec-74f44e362a44ec8e7c9125eecc2218ba47289d1f.tar
msec-74f44e362a44ec8e7c9125eecc2218ba47289d1f.tar.gz
msec-74f44e362a44ec8e7c9125eecc2218ba47289d1f.tar.bz2
msec-74f44e362a44ec8e7c9125eecc2218ba47289d1f.tar.xz
msec-74f44e362a44ec8e7c9125eecc2218ba47289d1f.zip
fix bug #17921 by parsing correctly the output of ls.
Diffstat (limited to 'cron-sh')
-rwxr-xr-xcron-sh/security_check.sh2
1 files changed, 1 insertions, 1 deletions
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