From f26f53be9c08d068fe4a71e13e507a973997ac82 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 10 Jan 2006 11:52:52 +0000 Subject: Add a test for today's fts.c fix. --- tests/chmod/no-x | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/chmod/no-x') diff --git a/tests/chmod/no-x b/tests/chmod/no-x index fbbb4890d..bdaeb732a 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 -- cgit v1.2.3-70-g09d2