URL:
<http://savannah.gnu.org/bugs/?27923>
Summary: rm -f gives an error when trying to delete a
non-existent file on a read-only filesystem
Project: GNU Core Utilities
Submitted by: sbd
Submitted on: Tue 03 Nov 2009 10:32:18 PM NZDT
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Eg:
/bin/rm: cannot remove `non-existent-file': Read-only file system.
On a linux/glibc system the unlinkat syscall will set errno to EROFS and
nonexistent_file_errno() does not perform any checks
for this case. (Another rm does an fts_open/fts_read and ignores
the file if fts_info is FST_NS before trying to unlink it.)
(coreutils version 7.4)
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?27923>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/