bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Fix preserve_mode when destination directory partially exist


From: Paul Eggert
Subject: Re: [PATCH] Fix preserve_mode when destination directory partially exists
Date: Fri, 04 Jan 2008 11:37:45 -0800
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Jan Blunck <address@hidden> 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]