cpio misunderstanding?

Polytropon freebsd at edvax.de
Sat Dec 25 04:08:09 UTC 2010

On Fri, 24 Dec 2010 19:57:41 -0500, Joe Kraft <jvk-list at thekrafts.org> wrote:
> I don't quite get why this works this way though.  I understand the 
> immutable flag will keep the file itself from being changed, deleted or 
> moved.  But I don't see in any documentation that the immutable flag will 
> not allow a file to be copied. 

It *may* have to do something with the updating of the access
time (atime) of a file by the cpio program?

> I did note that when using the 'cp' command 
> it cleared the immutable bit on the new file instead of keeping it, but at 
> least it makes the copy.

The schg flag has to be set on the destination file manually.
It won't be copied by the cp command.

Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

More information about the freebsd-questions mailing list