bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #27923] rm -f gives an error when trying to delete a non-existent f


From: Steven Drake
Subject: [bug #27923] rm -f gives an error when trying to delete a non-existent file on a read-only filesystem
Date: Tue, 03 Nov 2009 09:32:20 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3

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/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]