Re: new snapshot [Re: coreutils 6.9.92 fail to configure on *bsd
From:
Elias Pipping
Subject:
Re: new snapshot [Re: coreutils 6.9.92 fail to configure on *bsd
Date:
Sat, 26 Jan 2008 15:16:08 +0100
User-agent:
Mutt/1.5.17 (2007-11-01)
On Sat, Jan 26, 2008 at 01:54:58PM +0100, Jim Meyering wrote:
> Elias Pipping <address@hidden> 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.
> Do you see the same behavior if you run those commands in /tmp?
> (in place of "./", you'll need "/abs/path-to/coreutils-6.10/src/")
# pwd
/tmp
# /Users/pipping/coreutils-6.10/src/id -a
uid=0(root) gid=0(wheel) groups=0(wheel),1(daemon),8(procview),
2(kmem),29(certusers),3(sys),9(procmod),4(tty),
102(com.apple.sharepoint.group.2),5(operator),80(admin),20(staff),
101(com.apple.sharepoint.group.1)
# /Users/pipping/coreutils-6.10/src/rm -rf f g
# echo a > f
# /Users/pipping/coreutils-6.10/src/chown +0:+0 f
# ls -ld . f
drwxrwxrwt 9 root wheel 374 Jan 26 15:10 .
-rw-r--r-- 1 root wheel 2 Jan 26 15:10 f
# /Users/pipping/coreutils-6.10/src/cp f g
# ls -l g
-rw-r--r-- 1 root wheel 2 Jan 26 15:11 g
#
-- Elias