Jan Blunck <[EMAIL PROTECTED]> writes:

> I found a bug with cp -p --parents when the destination partially exists and
> the filesystem isn't mounted with acls.
>
> $ mkdir -p a/b/c a/b/d e
> $ touch a/b/c/foo a/b/d/foo
> $ cp -p --parent a/b/c e
> $ cp -p --parent a/b/d e
> $ ls -ld e/a
> d--------- 3 jblunck suse 4096 1970-01-01 01:00 e/a

I can't reproduce the problem on my Debian stable host, using
coreutils 6.9.91:

  $ mkdir -p a/b/c a/b/d e
  $ touch a/b/c/foo a/b/d/foo
  $ cp -p --parent a/b/c e
  cp: omitting directory `a/b/c'

> I'm not sure if reseting the permissions of the already existing directories
> is the right thing to do. At least it is the same behavior that cp had before
> the above commit.

It sounds like some fix is needed, but I'm afraid I don't understand
the bug or the patch yet.


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to