summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-01-10 11:52:52 +0000
committerJim Meyering <jim@meyering.net>2006-01-10 11:52:52 +0000
commitf26f53be9c08d068fe4a71e13e507a973997ac82 (patch)
tree0d9c3d5b94498bde6356d5b61da22c02e06ac134
parente774de2be668de8e979da9b536c3b46afc6684dd (diff)
downloadcoreutils-f26f53be9c08d068fe4a71e13e507a973997ac82.tar.xz
Add a test for today's fts.c fix.
-rwxr-xr-xtests/chmod/no-x9
1 files changed, 9 insertions, 0 deletions
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