From owner-freebsd-current@FreeBSD.ORG Mon Aug 29 10:37:57 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D8B616A41F; Mon, 29 Aug 2005 10:37:57 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67B4C43D49; Mon, 29 Aug 2005 10:37:54 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.3/8.13.3) with ESMTP id j7TAbkZW088536; Mon, 29 Aug 2005 14:37:47 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.3/8.13.3/Submit) id j7TAbjc0088535; Mon, 29 Aug 2005 14:37:45 +0400 (MSD) (envelope-from yar) Date: Mon, 29 Aug 2005 14:37:45 +0400 From: Yar Tikhiy To: Emanuel Strobl Message-ID: <20050829103745.GA78113@comp.chem.msu.su> References: <200508262004.54637@harrymail> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200508262004.54637@harrymail> User-Agent: Mutt/1.5.9i Cc: freebsd-current@freebsd.org, freebsd-questions@freebsd.org Subject: Re: cpio and tar are loosing flags (and a panic message without trace) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2005 10:37:57 -0000 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 |Y.fflags=arch,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. -- Yar