GNU bug report logs - #44883
"rm -rf *" performs an extra skip when it encounters an immutable empty directory

Previous Next

Package: coreutils;

Reported by: Nishant Nayan <nishant.nayan <at> oracle.com>

Date: Thu, 26 Nov 2020 11:50:01 UTC

Severity: normal

Tags: patch

Merged with 44884, 44889

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 44883 in the body.
You can then email your comments to 44883 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#44883; Package coreutils. (Thu, 26 Nov 2020 11:50:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Nishant Nayan <nishant.nayan <at> oracle.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Thu, 26 Nov 2020 11:50:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Nishant Nayan <nishant.nayan <at> oracle.com>
To: bug-coreutils <at> gnu.org
Subject: "rm -rf *" performs an extra skip when it encounters an immutable
 empty directory
Date: Thu, 26 Nov 2020 16:01:15 +0530
Hi,

The 'rm' utility' is skipping a mutable file when it encounters an 
immutable empty
directory (while deleting group of files and directories). 
Version(/8.22-18.0.1)/

Description: The bug is that rm skips an extra file while it encounters
an immutable empty directory. For example, on doing an "rm -rf *" on "a 
b c foo x y z",
where a,b,c,x,y,z are mutable files and foo is an immutable empty 
directory, the output
was "foo x", as soon as rm encounters an immutable directory, it skips 
it's immediate
next file(x in this case) and deletes all other files.

I would like to know if it's a known bug?


Regards
Nishant Nayan





Forcibly Merged 44865 44883 44889. Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Thu, 26 Nov 2020 17:02:03 GMT) Full text and rfc822 format available.

Forcibly Merged 44865 44883 44884 44889. Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Thu, 26 Nov 2020 17:09:01 GMT) Full text and rfc822 format available.

Disconnected #44865 from all other report(s). Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Thu, 26 Nov 2020 17:12:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 25 Dec 2020 12:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 175 days ago.

Previous Next


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