From owner-freebsd-current@FreeBSD.ORG Tue Jul 1 08:17:55 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1875F1065675; Tue, 1 Jul 2008 08:17:55 +0000 (UTC) (envelope-from vova@sw.ru) Received: from relay.sw.ru (mailhub.sw.ru [195.214.232.25]) by mx1.freebsd.org (Postfix) with ESMTP id 7B47E8FC1F; Tue, 1 Jul 2008 08:17:52 +0000 (UTC) (envelope-from vova@sw.ru) Received: from vbook.fbsd.ru ([10.30.1.111]) (authenticated bits=0) by relay.sw.ru (8.13.4/8.13.4) with ESMTP id m618Hlwf022826 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 1 Jul 2008 12:17:48 +0400 (MSD) Received: from vova by vbook.fbsd.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KDb3b-000Ag5-FE; Tue, 01 Jul 2008 12:17:47 +0400 From: Vladimir Grebenschikov To: Tim Kientzle In-Reply-To: <4869C4C4.1050806@freebsd.org> References: <20080626110521.GA68764@wep4017.physik.uni-wuerzburg.de> <1214815958.3581.67.camel@localhost> <486901FB.5080308@freebsd.org> <1214842042.8768.12.camel@localhost> <4869C4C4.1050806@freebsd.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: SWsoft Date: Tue, 01 Jul 2008 12:17:46 +0400 Message-Id: <1214900266.1947.13.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.22.2 FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov Cc: freebsd-current@freebsd.org Subject: Re: cpio -dumpl damages the files? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vova@fbsd.ru List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jul 2008 08:17:55 -0000 On Mon, 2008-06-30 at 22:46 -0700, Tim Kientzle wrote: > Vladimir Grebenschikov wrote: > > > > > > Files are not corrupted any more, but strange message for every > > directory still shown. > > Yes. I think I just fixed this. Please let me know if > you see any other problems. Now it works ok with directories, but I think, condition is too generic: + if (cpio->option_link + && archive_entry_filetype(entry) != AE_IFDIR) + { New cpio: $ ln -s /none a/symlink $ find a | cpio -dumpl dst/ cpio: Can't create 'dst/a/symlink': No such file or directory: No such file or directory $ ls -l dst/a/symlink ls: dst/a/symlink: No such file or directory $ Old cpio: $ mkdir zz dst $ ln -s /none zz/symlink $ find zz | cpio -dumpl dst/ 0 blocks $ ls -l dst/zz/symlink lrwxrwxrwx 1 vova 207 5 Jul 1 12:45 dst/zz/symlink -> /none $ > Tim -- Vladimir B. Grebenschikov vova@fbsd.ru