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

2008-01-11 Thread Jan Blunck
On Tue, Jan 08, Paul Eggert wrote: > Jim Meyering <[EMAIL PROTECTED]> writes: > > > 2008-01-07 Jan Blunck <[EMAIL PROTECTED]> > > > > cp --parents: don't use uninitialized memory when restoring permissions > > In reviewing that patch I notic

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

2008-01-07 Thread Jan Blunck
On Fri, Jan 04, Paul Eggert wrote: > 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

[PATCH] Fix preserve_mode when destination directory partially exists

2008-01-04 Thread Jan Blunck
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 This bug was