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

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


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

Reply via email to