pauldreik / rdfind

find duplicate files utility
Other
980 stars 79 forks source link

ls could be destroyed by tests #106

Open tastytea opened 2 years ago

tastytea commented 2 years ago

testcases/hardlink_fails.sh and testcases/symlinking_action.sh try to modify $(which ls) and expect it to fail. However, a user could have ls in a user-writable directory in ${PATH}, for example ~/.local/bin. Replacing that with a symlink to a temporary file that is deleted afterwards would destroy it.