GNU bug report logs - #24730
rmdir/mkdir error(s) and/or not working "reciprocally" w/each other

Previous Next

Package: coreutils;

Reported by: "L. A. Walsh" <coreutils <at> tlinx.org>

Date: Tue, 18 Oct 2016 20:02:02 UTC

Severity: normal

Tags: notabug

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eric Blake <eblake <at> redhat.com>
To: Reuti <reuti <at> staff.uni-marburg.de>
Cc: 24730-done <at> debbugs.gnu.org, "L. A. Walsh" <coreutils <at> tlinx.org>
Subject: bug#24730: rmdir/mkdir error(s) and/or not working "reciprocally" w/each other
Date: Tue, 18 Oct 2016 15:54:30 -0500
[Message part 1 (text/plain, inline)]
On 10/18/2016 03:50 PM, Reuti wrote:

>>>
>>> 1) thinking either rmdir shouldn't generate an error or mkdir should
>>>
>>> mkdir -p a/../b      # no error
> 
>> a needs to be created,
>> a/.. already exists, so it silently does nothing,
>> a/../b needs to be created
> 
>>> rmdir -p a/../b      # error, but a & b removed
> 
>> a/../b needs to be removed,
>> a/.. needs to be removed, but you can't do that,
>> at this point, POSIX is fuzzy whether to attempt to remove 'a', or to
>> give up since 'a/..' was already an error; but obviously coreutils
>> removes 'a'
> 
> What version of core-utils shows this behavior. In the latest one it's not removed AFAICS.

Hmm, you're right. I was going off the (incorrect) comment in the text
above, rather than actually testing it; so it looks like coreutils gives
up on the first error, rather than trying to remove a.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

[signature.asc (application/pgp-signature, attachment)]

This bug report was last modified 8 years and 212 days ago.

Previous Next


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