Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Dec 2010 05:07:48 +0100
From:      Polytropon <freebsd@edvax.de>
To:        Joe Kraft <jvk-list@thekrafts.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: cpio misunderstanding?
Message-ID:  <20101225050748.7b75781c.freebsd@edvax.de>
In-Reply-To: <if3fi6$2k4$1@dough.gmane.org>
References:  <if2rdo$tk5$1@dough.gmane.org> <201012242042.21257.ken@mthelicon.com> <if3fi6$2k4$1@dough.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 24 Dec 2010 19:57:41 -0500, Joe Kraft <jvk-list@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.



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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101225050748.7b75781c.freebsd>