Date: Mon, 29 Aug 2005 17:06:58 +0200 From: Emanuel Strobl <Emanuel.strobl@gmx.net> To: freebsd-current@freebsd.org Cc: kientzle@freebsd.org, freebsd-questions@freebsd.org Subject: Re: cpio and tar are loosing flags (and a panic message without trace) Message-ID: <200508291707.07636@harrymail> In-Reply-To: <20050829103745.GA78113@comp.chem.msu.su> References: <200508262004.54637@harrymail> <20050829103745.GA78113@comp.chem.msu.su>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200508291707.07636>