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

Caspar Zhang
2012-05-11T04:14:24Z

On 05/11/2012 10:37 AM, Peng Haitao wrote:
> 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>

Reviewed-by: Caspar Zhang <caspar@casparzhang.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 ]