diff options
author | Frederic Lepied <flepied@mandriva.com> | 2002-04-29 17:52:46 +0000 |
---|---|---|
committer | Frederic Lepied <flepied@mandriva.com> | 2002-04-29 17:52:46 +0000 |
commit | bc5b29dd6d37ce0058da250fab06f3487602b60f (patch) | |
tree | ce8f5d5ae9279ac5e5a032bd0740b976838b90d5 /cron-sh | |
parent | 61eb38bd6d485a7bf6f989288c5224588d649c22 (diff) | |
download | msec-bc5b29dd6d37ce0058da250fab06f3487602b60f.tar msec-bc5b29dd6d37ce0058da250fab06f3487602b60f.tar.gz msec-bc5b29dd6d37ce0058da250fab06f3487602b60f.tar.bz2 msec-bc5b29dd6d37ce0058da250fab06f3487602b60f.tar.xz msec-bc5b29dd6d37ce0058da250fab06f3487602b60f.zip |
corrected alias files loop (J�r�me UZEL).
CVS: ----------------------------------------------------------------------
CVS: Enter Log. Lines beginning with `CVS: ' are removed automatically
CVS: committing files:
CVS: /home/flepied/work/msec/cron-sh/security_check.sh
CVS:
CVS: Type C-c C-c when done or C-c C-d to abort.
CVS: ----------------------------------------------------------------------
Diffstat (limited to 'cron-sh')
-rwxr-xr-x | cron-sh/security_check.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cron-sh/security_check.sh b/cron-sh/security_check.sh index 2ed31aa..ae6d6ca 100755 --- a/cron-sh/security_check.sh +++ b/cron-sh/security_check.sh @@ -229,7 +229,7 @@ fi list="/etc/aliases /etc/postfix/aliases" for file in ${list}; do if [[ -s ${file} ]]; then - grep -v '^#' /etc/aliases | grep '|' | while read line; do + grep -v '^#' ${file} | grep '|' | while read line; do printf "\t\t- ${line}\n" done > ${TMP} fi |