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.
testcases/hardlink_fails.sh and testcases/symlinking_action.sh try to modify
$(which ls)
and expect it to fail. However, a user could havels
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.