Re: cpio -dumpl damages the files?

From: Vladimir Grebenschikov <vova_at_fbsd.ru>
Date: Wed, 02 Jul 2008 10:51:57 +0400
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
Received on Wed Jul 02 2008 - 04:52:05 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:32 UTC