GNU bug report logs - #39364
[PATCH] rmdir: fix clobbered errno

Previous Next

Package: coreutils;

Reported by: Matthew Pfeiffer <spferical <at> gmail.com>

Date: Fri, 31 Jan 2020 02:21:02 UTC

Severity: normal

Tags: patch

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Pádraig Brady <P <at> draigBrady.com>
To: Bernhard Voelker <mail <at> bernhard-voelker.de>, 39364 <at> debbugs.gnu.org, spferical <at> gmail.com
Subject: bug#39364: [PATCH] rmdir: fix clobbered errno
Date: Fri, 7 Feb 2020 13:58:33 +0000
On 06/02/2020 18:04, Bernhard Voelker wrote:
> On 2020-02-04 20:21, Pádraig Brady wrote:
>> pushed. marking done
> 
> Hi Padraig,
> 
> I just noticed that 'is_empty_dir' from 'src/system.h' is also used
> in 'src/remove.c', so - without having looked there yet - it could
> be that the patch changed something in rm(1) as well (good or bad).
> Did you check?

Yes the existing is_empty_dir() interface didn't change.
We just added more info (errno) in the non empty case,
that is not inspected by remove.c (which is fine for its uses).

thanks for checking,
Pádraig




This bug report was last modified 5 years and 99 days ago.

Previous Next


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