remove: without -f, avoid unnecessary-expense/issues with euidaccess
commit998fe29301083246f16738a5f42ccb9d15fd85ea
authorJim Meyering <meyering@redhat.com>
Sat, 6 Mar 2010 12:16:19 +0000 (6 13:16 +0100)
committerJim Meyering <meyering@redhat.com>
Wed, 10 Mar 2010 10:05:18 +0000 (10 11:05 +0100)
tree0daf0fc0c6bc6f291888d0a9617d16f6a8d1bc1a
parent612c2c95c35f9743bbaaf64d0b9856621e7558d2
remove: without -f, avoid unnecessary-expense/issues with euidaccess

* src/remove.c (write_protected_non_symlink): If faccessat fails,
return 1 or -1 directly, rather than falling back on euidaccess*.
src/remove.c