-
Notifications
You must be signed in to change notification settings - Fork 132
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] Don't follow symbolic links #225
Comments
Why was this closed? Seems like a good feature. Verify symbolic links, but don't follow. |
Sure. Will you implement it? |
The flag '-R' causes hashdeep to hash the output of readlink instead of following the file. Tested on Ubuntu 16.04 and Mac OS X High Sierra. Not supported on Windows.
It looks like s-d-adams implemented this feature in their fork of hashdeep back in 2018, and offers this fix back here to main hashdeep as PR #382. That PR is still open, awaiting a response. I am presently using sha256deep on macOS Sonoma 14.7.1, and it is covering way more files than I intended because it is following symlinks. I would really benefit from having the proposed -R flag. I am glad to have sha256deep, so thank you for your work to develop it, but I would be even more glad to have this feature. |
It looks like I need to implement GitHub actions on this repo so that we can test and validate pull request before accepting them. If you want to do a pool request that implements GitHub Actions, I'll take a look at it. Otherwise, I'll add that to my things to do list. |
Converted from SourceForge issue 2308881, submitted by jessekornblum
Can you include a new command line option to exclude traversal of symbolic/hardlinks: sth. like '--no-links-followed'
This way moved/backuped data can be properly compared, even when relative directory paths are given in links. Currently the moved/backuped files show a broken destination and the comparison fails.
Using '-o bcpfsd' is not possible, because links should be digested also, but not followed.
The text was updated successfully, but these errors were encountered: