tar is creating corrupt archives when soft links are present

2022-12-01 Thread Timothe Litt
tar has multiple bad behaviors when creating an archive, resulting in an archive that incorrectly represents soft links.  Restoring from such an archive results in an unusable system. * tar incorrectly converts (almost) all soft links to point to a single file in the archive o I have s

Re: tar is creating corrupt archives when soft links are present

2022-12-01 Thread Timothe Litt
Thanks for the quick response.   I think I've cut this down even further based on your suggestion.  Here are the results, and some additional context.  Also, another problem with creating archives - very large files are skipped. i've seen this on Fedora Core 4; the report is on FC 6.  (Yes, th

Re: tar is creating corrupt archives when soft links are present

2022-12-01 Thread Dominique Martinet
Timothe Litt wrote on Thu, Dec 01, 2022 at 04:14:42PM -0500: > The attached "hardlink_strace.txt" comes from a simplified command to reduce > volume, but it should show the same syscalls: > >  ( cd / && strace 2>hardlink_strace.txt tar -cf - bin/awk bin/bash > >/dev/null ) The fstatat64 structs r