GNU bug report logs -
#15943
[PATCH] doc: enhance diagnostic when rm skips "." or ".." arguments
Previous Next
Reported by: Linda Walsh <coreutils <at> tlinx.org>
Date: Thu, 21 Nov 2013 00:56:02 UTC
Severity: normal
Tags: notabug, patch
Merged with 15926
Done: Assaf Gordon <assafgordon <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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? ;-/)
This bug report was last modified 6 years and 225 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.