From owner-freebsd-questions@FreeBSD.ORG Mon Aug 29 15:07:11 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A564D16A41F for ; Mon, 29 Aug 2005 15:07:11 +0000 (GMT) (envelope-from Emanuel.strobl@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 2024A43D48 for ; Mon, 29 Aug 2005 15:07:09 +0000 (GMT) (envelope-from Emanuel.strobl@gmx.net) Received: (qmail invoked by alias); 29 Aug 2005 15:07:08 -0000 Received: from flb.schmalzbauer.de (EHLO cale.flintsbach.schmalzbauer.de) [62.245.232.135] by mail.gmx.net (mp032) with SMTP; 29 Aug 2005 17:07:08 +0200 X-Authenticated: #301138 From: Emanuel Strobl To: freebsd-current@freebsd.org Date: Mon, 29 Aug 2005 17:06:58 +0200 User-Agent: KMail/1.8.1 References: <200508262004.54637@harrymail> <20050829103745.GA78113@comp.chem.msu.su> In-Reply-To: <20050829103745.GA78113@comp.chem.msu.su> X-Birthday: Oct. 6th 1972 X-CelPhone: +49 (0) 173 9967781 X-Tel: +49 (0) 89 18947781 X-Country: Germany X-Address: Munich, 80686 X-OS: FreeBSD MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart6990414.5hKRV5JcGA"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200508291707.07636@harrymail> X-Y-GMX-Trusted: 0 Cc: kientzle@freebsd.org, freebsd-questions@freebsd.org Subject: Re: cpio and tar are loosing flags (and a panic message without trace) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2005 15:07:11 -0000 --nextPart6990414.5hKRV5JcGA Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Am Montag, 29. August 2005 12:37 CEST schrieb Yar Tikhiy: > On Fri, Aug 26, 2005 at 08:04:45PM +0200, Emanuel Strobl wrote: > > Then I remember Tim Kienzles great work for bsdtar and all the ACL > > stuff, but unfortunately a cvPPzf <> xvpPfz also looses the arch flag > > :( > > Would you mind sending a PR on this issue with kientzle@freebsd.org > in Cc:? I believe Tim will be interested in it. I've just confirmed > myself using not-too-old CURRENT that bsdtar won't restore file > flags stored in its own archive: > > vpc7# tar --version > bsdtar 1.02.023, libarchive 1.02.026 > Copyright (C) 2003-2005 Tim Kientzle > vpc7# sysctl kern.securelevel > kern.securelevel: -1 > vpc7# mkdir dir > vpc7# touch dir/file > vpc7# chflags arch,sunlink dir/file > vpc7# ls -lo dir/file > -rw-r--r-- 1 root staff arch,sunlnk 0 Aug 29 14:35 dir/file > vpc7# tar cf dir.tar dir > vpc7# hd dir.tar | grep -1 fflags > 00000420 35 33 32 36 31 34 39 0a 32 39 20 53 43 48 49 4c |5326149.29 > SCHIL| 00000430 59 2e 66 66 6c 61 67 73 3d 61 72 63 68 2c 73 75=20 > |Y.fflags=3Darch,su| 00000440 6e 6c 6e 6b 0a 31 37 20 53 43 48 49 4c 59 > 2e 64 |nlnk.17 SCHILY.d| vpc7# mv dir dir.bak > vpc7# tar xpf dir.tar > vpc7# ls -lo dir/file > -rw-r--r-- 1 root staff - 0 Aug 29 14:35 dir/file > > This is at variance with what the tar(1) manpage says: > > -p (x mode only) Preserve file permissions. Attempt to > restore the full permissions, including owner, file modes, file flags > and ACLs, if available, for each item extracted from the archive... > > I think it might be reasonable to include these details in the PR. I filed a PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=3D84135 Unfortunately I forgot to include your analysis here, so I CC this message= =20 to Tim Kientzle. =2DHarry --nextPart6990414.5hKRV5JcGA Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQBDEySbBylq0S4AzzwRAveWAJ4yHaFrkgs3Tm0FYV0i0D8I5JvOeQCfTWRL n9mfMzGETkB4EpVcaO9vTZo= =dL8y -----END PGP SIGNATURE----- --nextPart6990414.5hKRV5JcGA--