On Tue, 18 Mar 2008 17:54:27 +0100
Pav Lucistnik <pav@FreeBSD.org> mentioned:
> Stanislav Sedov pe v t 18. 03. 2008 v 19:50 +0300:
> > On Tue, 18 Mar 2008 17:43:08 +0100
> > Pav Lucistnik <pav@FreeBSD.org> mentioned:
> > >
> > > It will also change permissions on all files already present in the
> > > target directory, I think. Which might not be a desirable thing.
> > >
> > Indeed, I know. That's why I'm asking if it'll be desirable.
> It's a COPYTREE_* bug that needs to be fixed, actually.
Why you think it's a bug? COPYTREE_* was intentionally designed to set
specific permissions on files written.
Of course, we can implement a version of COPYTREE that doesn't set any
permissions on files, but it'll be effectively just a 'cp -rf'.