Date: Tue, 01 Jul 2008 12:17:46 +0400 From: Vladimir Grebenschikov <vova@fbsd.ru> To: Tim Kientzle <kientzle@freebsd.org> Cc: freebsd-current@freebsd.org Subject: Re: cpio -dumpl damages the files? Message-ID: <1214900266.1947.13.camel@localhost> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1214900266.1947.13.camel>
