From owner-freebsd-questions@FreeBSD.ORG Sun Dec 26 20:04:31 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C593E106566B for ; Sun, 26 Dec 2010 20:04:31 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 85F7C8FC14 for ; Sun, 26 Dec 2010 20:04:31 +0000 (UTC) Received: from r55.edvax.de (port-92-195-37-207.dynamic.qsc.de [92.195.37.207]) by mx02.qsc.de (Postfix) with ESMTP id 10B2E217A6 for ; Sun, 26 Dec 2010 21:04:29 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id oBQK4T5b001768 for ; Sun, 26 Dec 2010 21:04:29 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sun, 26 Dec 2010 21:04:28 +0100 From: Polytropon To: freebsd-questions@freebsd.org Message-Id: <20101226210428.da2114c5.freebsd@edvax.de> In-Reply-To: References: <201012242042.21257.ken@mthelicon.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: cpio misunderstanding? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Dec 2010 20:04:31 -0000 On Sun, 26 Dec 2010 11:30:59 -0800, David Brodbeck wrote: > On Fri, Dec 24, 2010 at 4:57 PM, Joe Kraft wrote: > > OK, now I know what's going on. =A0I just don't know why. =A0The immuta= ble flag > > was set on all these files, if you clear it cpio will happily copy them= to > > the new directory. >=20 > Does cpio attempt to preserve flags? Since the error is "could not > create," I'm wondering if it's trying to set the same flags on the > copy of the file and failing to do so. I'm not sure about that - "man cpio" doesn't give a hint about flags. On the other hand, tar's -p option does keep the file mode (permissions), flags and maybe ACLs intact. I've tried "info cpio" ouch! ouch!, but that's not a continuous manual that allows easy searching for strings. :-( Some search in the /usr/src/bin subtree for the "chflags" call revealed that it is used by the chflags binary, cp, mv and rm commands, but no hint it is involved directly in cpio. --=20 Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...