pauldreik/rdfind

ls could be destroyed by tests

Opened this issue · 0 comments

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.