[LTP] [PATCH] logrotate01: fix a bug of config file's permission is wrong

Peng Haitao
2012-05-11T02:38:55Z

config file's permission should be 644, please refer to:
https://fedorahosted.org/logrotate/changeset/302

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
---
testcases/commands/logrotate/logrotate_tests.sh | 1 +
1 file changed, 1 insertion(+)

diff --git a/testcases/commands/logrotate/logrotate_tests.sh b/testcases/commands/logrotate/logrotate_tests.sh
index 827dd5f..55ef0b3 100755
--- a/testcases/commands/logrotate/logrotate_tests.sh
+++ b/testcases/commands/logrotate/logrotate_tests.sh
@@ -192,6 +192,7 @@ test01()
rm -f $files > /dev/null 2>&1
done

+ chmod 644 $LTPTMP/tst_logrotate.conf
logrotate -fv $LTPTMP/tst_logrotate.conf > $LTPTMP/tst_logrotate.out 2>&1 \
|| RC=$?
if [ $RC -eq 0 ]
--
1.7.10