]> git.ipfire.org Git - thirdparty/coreutils.git/commit
rm (without -f) could hang unnecessarily when attempting to
authorJim Meyering <jim@meyering.net>
Wed, 2 Jun 2004 21:39:45 +0000 (21:39 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 2 Jun 2004 21:39:45 +0000 (21:39 +0000)
commita0b4523704040bc2570c986e3e734941108c8f89
tree5d647ce3ac5570af9d447add76cad7d6ceda2b3d
parent0539abe980263852a684afa5f03089ff50972d66
rm (without -f) could hang unnecessarily when attempting to
remove a symlink to a file on an off-line NFS-mounted partition.
Reported by David Howells in https://bugzilla.redhat.com/124699.

(write_protected_non_symlink): New function.
Don't invoke euidaccess on symlinks.
(prompt): Use write_protected_non_symlink rather than using
euidaccess directly, being careful not to call lstat twice for a file.
src/remove.c