ckolivas / lrzip

Long Range Zip
http://lrzip.kolivas.org
GNU General Public License v2.0
618 stars 76 forks source link

Unable to stat file error on broken symlinks #250

Open D3vil0p3r opened 8 months ago

D3vil0p3r commented 8 months ago

When I try to compress a directory containing symlinks, I get an error like:

Unable to stat file <path-to-symlink>

It occurs when the symlink you are trying to compress is not linked because its original resource is not available. Can you add an option on lrzip to manage this case? For example, ignoring broken symlinks or just keep them as "broken" (better solution)?

pete4abw commented 8 months ago

When I try to compress a directory containing symlinks, I get an error like:

Unable to stat file <path-to-symlink>

It occurs when the symlink you are trying to compress is not linked because its original resource is not available. Can you add an option on lrzip to manage this case? For example, ignoring broken symlinks or just keep them as "broken" (better solution)?

pete4abw commented 8 months ago

@D3vil0p3r Also, try these commands on the directory in which the broken symlink occurs: tar -cvvf baddir.tar baddir and then tar -I 'lrzip -vv' -cvvf baddir.tar.lrz baddir I am wondering if this is a tar error.