cpio -dumpl damages the files?
Vladimir Grebenschikov
vova at fbsd.ru
Wed Jul 2 06:52:05 UTC 2008
On Tue, 2008-07-01 at 20:26 -0700, Tim Kientzle wrote:
> Vladimir Grebenschikov wrote:
> > On Tue, 2008-07-01 at 08:56 -0700, Tim Kientzle wrote:
> >
> >>Try adding the following to the above condition:
> >>
> >> && archive_entry_filetype(entry) != AE_IFLNK
> >
> > I guess it will work. I just wander about other AE_IF* that may not pass
> > link(2).
>
> Perhaps cpio -dumpl should only try to hardlink regular files?
I think, one need to check original cpio behaviour and do exactly as was
done here. Probably some software expect, for example, same inode number
after cpio -dump on, say, copied devices or like. IMHO, It is more
compatibility issue.
> That would be an easy change.
>
> Tim
--
Vladimir B. Grebenschikov
vova at fbsd.ru
More information about the freebsd-current
mailing list