mirror of
git://git.suckless.org/sbase
synced 2026-01-26 05:37:54 +00:00
rm: Fix regression from b278710
The forbidden() function only checks if we are trying to remove one of the . .. or / directories that are forbidden by POSIX, and it should not fail when it cannot stat a target, because that check is done later considering if -r, -f and -i were used or not. If the stat fails we can be sure that is not / and thus it is not a forbidden target.
This commit is contained in:
parent
b27871013b
commit
cfe9424ba9
Loading…
x
Reference in New Issue
Block a user