]> git.ipfire.org Git - thirdparty/coreutils.git/commit
rm without -f: give a better diagnostic when euidaccess fails.
authorJim Meyering <jim@meyering.net>
Thu, 8 Mar 2007 09:00:55 +0000 (10:00 +0100)
committerJim Meyering <jim@meyering.net>
Thu, 8 Mar 2007 09:38:59 +0000 (10:38 +0100)
commit2639ed8208c271c105d7f77e23dc8e64f52ca04c
tree20f4a52cfa285140d4e905ee6b8783b543b2338e
parent09aab8cb41a610c18d56b31a81946dec1ff0a85d
rm without -f: give a better diagnostic when euidaccess fails.
* src/remove.c (write_protected_non_symlink): Return int, not bool,
so that we can indicate failure too (as a postive error number).
(prompt): If write_protected_non_symlink fails, report that error
number and fail rather than charging ahead and removing the dubious
entry.  Redo the logic of printing a diagnostic so that we need to
invoke quote (full_filename (...)) only once.  More details at:
<http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/9952/focus=9996>
ChangeLog
src/remove.c