bug-coreutils
[Top][All Lists]
Advanced

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

bug#15943: [PATCH] doc: enhance diagnostic when rm skips "." or ".." arg


From: Linda Walsh
Subject: bug#15943: [PATCH] doc: enhance diagnostic when rm skips "." or ".." arguments
Date: Wed, 20 Nov 2013 16:54:46 -0800
User-agent: Thunderbird

On 20/11/2013 15:47, Bernhard Voelker wrote:

-          /* If a command line argument resolves to "/" (and --preserve-root
+          /* POSIX also says:
+             If a command line argument resolves to "/" (and --preserve-root
              is in effect -- default) diagnose and skip it.  */
           if (ROOT_DEV_INO_CHECK (x->root_dev_ino, ent->fts_statp))
             {
-----

So it is easier to delete everything under '/' than
under /tmp/.

Hmm...

Maybe since '/' doesn't really delete the file system itself,
but only files and dirs underneath '/',

Then the correct solution is if a user says
to remove /tmp/
it will remove everything under /tmp but not /tmp itself?

That doesn't seem to be disallowed by POSIX...

(its a bit absurd, but as long as it conforms to POSIX
it should be fine, right? ;-/)







reply via email to

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