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.

Full log


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





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.