sahib / rmlint

Extremely fast tool to remove duplicates and other lint from your filesystem
http://rmlint.rtfd.org
GNU General Public License v3.0
1.85k stars 128 forks source link

File perms discrepancy between clone and reflink #658

Open sfc-gh-abalik opened 2 months ago

sfc-gh-abalik commented 2 months ago

I noticed that the reflink implementation uses file perms from the original file for all duplicate files. clone does not seem to do this.

Is this discrepancy intentional? I feel like they should be consistent and think that the default behavior should follow clone (don't change perms on duplicate files).

Feature request - it would also be nice to have a flag to control whether the perms are copied or not. I could imagine cases where either behavior is desirable.