squashfs-tools
squashfs-tools copied to clipboard
Feature request: Allow mksquashfs to follow symlinks instead of creating a symlink
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.