diff options
author | Jim Meyering <meyering@redhat.com> | 2008-01-26 18:28:43 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-01-26 23:05:01 +0100 |
commit | a6228c5437e9f07d9f72828436b75e3358443a1c (patch) | |
tree | 2cdc6b5b5fa7ad0499f7fa3b56501c8b56421489 | |
parent | 77abf69a6070c67d0f4c1722582c3f153b37ba3b (diff) | |
download | coreutils-a6228c5437e9f07d9f72828436b75e3358443a1c.tar.gz coreutils-a6228c5437e9f07d9f72828436b75e3358443a1c.tar.bz2 coreutils-a6228c5437e9f07d9f72828436b75e3358443a1c.zip |
Work around Darwin9's set-GID-like group ownership inheritance.
This avoids another spurious Mac OS 10.5.1 (Darwin 9.1) test failure.
* tests/cp/preserve-gid: Accept a group ID of 0, as well.
Reported by Elias Pipping.
-rw-r--r-- | ChangeLog | 5 | ||||
-rwxr-xr-x | tests/cp/preserve-gid | 10 |
2 files changed, 13 insertions, 2 deletions
@@ -1,5 +1,10 @@ 2008-01-26 Jim Meyering <meyering@redhat.com> + Work around Darwin9's set-GID-like group ownership inheritance. + This avoids another spurious Mac OS 10.5.1 (Darwin 9.1) test failure. + * tests/cp/preserve-gid: Accept a group ID of 0, as well. + Reported by Elias Pipping. + Emit "info coreutils 'PROG invocation'" into the man page, rather than just "info PROG". The latter would often fail or simply display the man page. diff --git a/tests/cp/preserve-gid b/tests/cp/preserve-gid index 9537dc06c..516733f33 100755 --- a/tests/cp/preserve-gid +++ b/tests/cp/preserve-gid @@ -33,8 +33,14 @@ t0() { "$@" "$f" b || exit 1 s=`stat -c '%u %g' b` if test "x$s" != "x$u $g"; then - echo "$0: $* $f b: $u $g != $s" 1>&2 - (exit 1); exit 1 + # Allow the actual group to match that of the parent directory + # (it was set to 0 above). + if test "x$s" = "x$u 0"; then + : + else + echo "$0: $* $f b: $u $g != $s" 1>&2 + (exit 1); exit 1 + fi fi } |