GNU bug report logs - #12260
rm -d in coreutils 8.19

Previous Next

Package: coreutils;

Reported by: Michael Price <mprice <at> atl.lmco.com>

Date: Wed, 22 Aug 2012 16:06:02 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


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

From: Robert Day <robertkday <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: bug#12260: rm -d in coreutils 8.19
Date: Wed, 22 Aug 2012 23:23:49 +0100
[Message part 1 (text/plain, inline)]
It looks as though the bug is that the prompt() function does its own
checking, returning EISDIR unless x->recursive is set, and this code wasn't
updated with the addition of -d. I've attached a patch which fixes this bug
and adds a test of that code path. The fixes can also be retrieved from
https://github.com/rkd91/coreutils_rm_di_patch.

I haven't submitted patches for coreutils before; if there's somewhere else
I should post this patch to, I'm happy to be pointed there.

Best,
Rob
[Message part 2 (text/html, inline)]
[rm.patch (application/octet-stream, attachment)]

This bug report was last modified 12 years and 253 days ago.

Previous Next


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