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

Feature request: Allow mksquashfs to follow symlinks instead of creating a symlink #250

Open
m94mni opened this issue May 31, 2023 · 0 comments

Comments

@m94mni
Copy link

m94mni commented May 31, 2023

Newer versions of GNU tar has an option for dereferencing symlinks, --dereference

https://www.gnu.org/software/tar/manual/html_node/dereference.html

I have a use case for this where a file resides in a directory without executable permission, so I can't include it in the squashfs. But I have a symlink to a specific file in that directory, and I want to copy the contents of that link.

From reading the code, it seems like replacing lstat() with (dereference ? stat : lstat)() in a few places would implement this behavior.

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

1 participant