GNU bug report logs - #52206
Bug: rm -rf /*/*

Previous Next

Package: coreutils;

Reported by: Robert Swinford <robert.swinford <at> gmail.com>

Date: Tue, 30 Nov 2021 20:27:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Robert Swinford <robert.swinford <at> gmail.com>
To: 52206 <at> debbugs.gnu.org
Subject: bug#52206: Bug: rm -rf /*/*
Date: Tue, 30 Nov 2021 13:58:32 -0600
TWIMC:

This seems like a bug: https://twitter.com/nixcraft/status/1465599844299411458

I was able to replicate the behavior in a container with coreutils version 8.30.

Interestingly, however, rm -rf // only does the following:

"root <at> test:~# rm -rf //
rm: it is dangerous to operate recursively on '//' (same as '/')
rm: use --no-preserve-root to override this failsafe"

I believe illumos has already solved this problem in a POSIX compliant fashion, see: https://www.youtube.com/watch?v=l6XQUciI-Sc&t=4903s

Appreciate your attention to this bug!

--
----------------------------------------------
ROBERT SWINFORD
----------------------------------------------
robert.swinford <at> gmail.com
m: (405) 209-2339
----------------------------------------------





This bug report was last modified 3 years and 227 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.