From: Jim Meyering Date: Tue, 10 Jan 2006 11:52:52 +0000 (+0000) Subject: Add a test for today's fts.c fix. X-Git-Tag: v6.0~937 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f26f53be9c08d068fe4a71e13e507a973997ac82;p=thirdparty%2Fcoreutils.git Add a test for today's fts.c fix. --- diff --git a/tests/chmod/no-x b/tests/chmod/no-x index fbbb4890df..bdaeb732a6 100755 --- a/tests/chmod/no-x +++ b/tests/chmod/no-x @@ -53,4 +53,13 @@ fi test $fail = 1 && diff out exp 2> /dev/null +mkdir -p a/b +cd a +# This will fail with ``chmod: fts_read failed: Permission denied'' +chmod a-x . b 2> /dev/null && fail=1 +# chmod must exit with status 1. +# Due to a bug in coreutils-5.93's fts.c, chmod would provoke +# an abort (exit with status 134) on recent glibc-based systems. +test $? = 1 || fail=1 + (exit $fail); exit $fail