On Monday 03 December 2007, Bob Proulx wrote:
> Mike Frysinger wrote:
> > + echo './../../../tests/cp/preserve-gid: setuidgid -g 1000,1017 1000 cp
> > -p c1 b: 1000 1017 != 1000 1000' ./../../../tests/cp/preserve-gid:
> > setuidgid -g 1000,1017 1000 cp -p c1 b: 1000 1017 != 1000 1000 + exit 1
>
> Can you strace it at this point?  This is what I see on my system.
>
> env PATH=/path/to/coreutils/src:$PATH setuidgid -g 1001,1017 1001 strace
>     -e fchown cp -p c1 b
> fchown(4, 0, 1017)                      = -1 EPERM (Operation not permitted)
> fchown(4, 4294967295, 1017)             = 0 

i'm not seeing the second fchown(), just the first ... full strace attached
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

Attachment: cp.strace.out.lzma
Description: Binary data

_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to