cp -Rp broken in RELENG_4? 'Operation not permitted' while copying directory permissions

Ruslan Ermilov ru at freebsd.org
Fri Oct 8 15:33:54 PDT 2004


On Thu, Oct 07, 2004 at 09:49:45PM +0300, Ruslan Ermilov wrote:
> On Thu, Oct 07, 2004 at 12:38:42PM -0400, Vlad wrote:
> > FreeBSD 4.10-STABLE #3: Thu Sep 30 
> > 
> > $ id
> > uid=65534(nobody) gid=65534(nobody) groups=65534(nobody)
> > 
> > $ mkdir test
> > 
> > $ chmod 770 test
> > 
> > $ cp -Rp test test2
> > cp: chmod: test2: Operation not permitted
> > 
> > $ ls -al
> > drwxrwx---   2 nobody  nobody         512 Oct  7 11:29 test
> > drwxr-x---   2 nobody  nobody         512 Oct  7 11:29 test2
> > 
> > $ chmod 770 test2
> > 
> > $ ls -al
> > drwxrwx---   2 nobody  nobody         512 Oct  7 11:29 test
> > drwxrwx---   2 nobody  nobody        512 Oct  7 11:29 test2
> > 
> > cp taken from 4.9 works just fine. Am I'm missing something?
> > 
> Give me a few hours to fix it, it's probably my fault.
> 
Fixed in src/bin/cp/cp.c,v 1.24.2.8.


Cheers,
-- 
Ruslan Ermilov
ru at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20041009/4a1a9312/attachment.bin


More information about the freebsd-stable mailing list