Forwarding this because I took it off-list by accident. ----- Forwarded message from Elias Pipping <[EMAIL PROTECTED]> -----
From: Elias Pipping <[EMAIL PROTECTED]> Date: Tue, 4 Dec 2007 08:46:42 +0100 To: Bob Proulx <[EMAIL PROTECTED]> Subject: Re: special-bits (Re: coreutils-6.9.90 fail 1/84 (help-version) on i386-apple-darwin9.1.0) On Mon, Dec 03, 2007 at 08:26:21PM -0700, Bob Proulx wrote: > Elias Pipping wrote: > > Here is the failure, the "good parts" version: > > > * special-bits > > ++ : nobody > > +++ id -u nobody > > ++ coreutils_non_root_uid=4294967294 > > + touch a b c > > + chmod u+sx,go= a > > + chmod u=rwx,g=sx,o= b > > + chmod a=r,ug+sx c > > + chown nobody . > > + chmod u=rwx,g=rx,o=rx . > > + fail=0 > > + cp -p a a2 > > cp: `a': No such file or directory > > + fail=1 > > The touch and chmod created a file and set the mode bits but then cp > is complaining that it does not exist. Can you run this set of > commands? > > touch a > chmod u+sx,go= a > chown nobody . > chmod u=rwx,g=rx,o=rx . > cp -p a a2 > ls -ld . a # touch a # chmod u+sx,go= a # chown nobody . # chmod u=rwx,g=rx,o=rx . # cp -p a a2 cp: `a': No such file or directory # ls -ld . a drwxr-xr-x 5 nobody staff 11288 2007-12-04 08:43 . -rws------ 1 root staff 0 2007-12-04 08:43 a run as root, with PATH=${PWD} # cp --version cp (GNU coreutils) 6.9.90 [ snip ] > That should fail the same as the test case. If it does then the ls > should report what was actually created and the permission of the > directory. I expect to see something like this: > > drwxr-xr-x 2 nobody root 4096 2007-12-03 20:21 . > -rws------ 1 root root 0 2007-12-03 20:21 a > > In which case the "No such file or directory" error is very strange. > The touch and chmod succeeded operating on the file but the cp failed > to open it? > > Bob -- Elias ----- End forwarded message -----
pgpchpgcP437g.pgp
Description: PGP signature
_______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils