diff options
author | Jim Meyering <jim@meyering.net> | 2006-01-04 16:06:30 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-01-04 16:06:30 +0000 |
commit | 63028c863d3e5ceba685f988dbc45a4cdcf233ec (patch) | |
tree | fb5cec3fe123ed6b0ec8f403e5de65ad54b49739 | |
parent | 0aea37a1b31da6a711cf8229497dd07915938a88 (diff) | |
download | coreutils-63028c863d3e5ceba685f988dbc45a4cdcf233ec.tar.xz |
Also allow a slightly different diagnostic -- the
one you get when using openat-enabled fts.c and du (coming soon).
-rwxr-xr-x | tests/chgrp/no-x | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/tests/chgrp/no-x b/tests/chgrp/no-x index d58fe8a1f..5ccb39273 100755 --- a/tests/chgrp/no-x +++ b/tests/chgrp/no-x @@ -39,7 +39,22 @@ cat <<\EOF > exp chgrp: `d/no-x': Permission denied EOF -cmp out exp || fail=1 +# With native fdopendir, du uses a different code path. +cat <<\EOF > exp-native-fdopendir +chmod: cannot access `d/no-x/y': Permission denied +chmod: fts_read failed: Permission denied +EOF + +if cmp out exp >/dev/null 2>&1; then + : +else + if cmp out exp-native-fdopendir; then + : + else + fail=1 + fi +fi + test $fail = 1 && diff out exp 2> /dev/null (exit $fail); exit $fail |