Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to stat file error on broken symlinks #250

Open
D3vil0p3r opened this issue Mar 17, 2024 · 2 comments
Open

Unable to stat file error on broken symlinks #250

D3vil0p3r opened this issue Mar 17, 2024 · 2 comments

Comments

@D3vil0p3r
Copy link

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)?

@D3vil0p3r D3vil0p3r changed the title Unable to stat file error on symlinks Unable to stat file error on broken symlinks Mar 17, 2024
@pete4abw
Copy link
Contributor

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)?

  • Not enough information.
  • Please provide exact command you executed along with output. Seems like you were using lrztar.
  • Please provide a partial directory listing of what you were trying to compress.
  • Use -vv option to expand output.

@pete4abw
Copy link
Contributor

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants