Re: cpio -dumpl damages the files?

From: Tim Kientzle <kientzle_at_freebsd.org>
Date: Tue, 01 Jul 2008 08:56:29 -0700
Vladimir Grebenschikov wrote:
> 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)
> +       {

[ ... example showing breakage copying symlinks ... ]

Try adding the following to the above condition:

     && archive_entry_filetype(entry) != AE_IFLNK
Received on Tue Jul 01 2008 - 13:56:45 UTC

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