Elias Pipping <[EMAIL PROTECTED]> wrote: > On Sat, Jan 26, 2008 at 01:54:58PM +0100, Jim Meyering wrote: >> Elias Pipping <[EMAIL PROTECTED]> wrote: >> >> > # ls -ld . f >> > drwxr-xr-x 3 pipping staff 11186 Jan 26 12:29 . >> > -rw-r--r-- 1 root wheel 2 Jan 26 12:29 f >> > # ./cp f g >> > # ls -l g >> > -rw-r--r-- 1 root staff 2 Jan 26 12:29 g >> >> That suggests that the bogus group is set by cp's open call. I suspect >> some sort of ACL mechanism that specifies "staff" as the default group -- >> or maybe some rule says "inherit group from parent directory". > > The latter seems to be the case.
It does, indeed. Please see if this makes the test pass: Avoid cp/preserve-gid test failure on Mac OS 10.5.1 (Darwin 9.1) * tests/cp/preserve-gid: Set group as well as owner on ".". Reported by Elias Pipping. diff --git a/tests/cp/preserve-gid b/tests/cp/preserve-gid index 5f2c050..9537dc0 100755 --- a/tests/cp/preserve-gid +++ b/tests/cp/preserve-gid @@ -1,7 +1,7 @@ #!/bin/sh # Verify that cp -p preserves GID when it is possible. -# Copyright (C) 2007 Free Software Foundation, Inc. +# Copyright (C) 2007, 2008 Free Software Foundation, Inc. # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -61,7 +61,7 @@ if test -z "$nameless_uid" \ skip_test_ "couldn't find a nameless UID or GID" fi -chown "+$nameless_uid" . +chown "+$nameless_uid:+0" . create a0 0 0 create b0 "$nameless_uid" "$nameless_gid1" _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils