GNU bug report logs - #20501
Include EINVAL in mkdir(2) man page

Previous Next

Package: coreutils;

Reported by: Raghavendra Prabhu <me <at> rdprabhu.com>

Date: Mon, 4 May 2015 15:36: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: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Raghavendra Prabhu <me <at> rdprabhu.com>
Subject: bug#20501: closed (Re: bug#20501: Include EINVAL in mkdir(2) man
 page)
Date: Mon, 04 May 2015 15:45:06 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#20501: Include EINVAL in mkdir(2) man page

which was filed against the coreutils package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 20501 <at> debbugs.gnu.org.

-- 
20501: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20501
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Eric Blake <eblake <at> redhat.com>
To: Raghavendra Prabhu <me <at> rdprabhu.com>, 20501-done <at> debbugs.gnu.org
Subject: Re: bug#20501: Include EINVAL in mkdir(2) man page
Date: Mon, 04 May 2015 09:44:39 -0600
[Message part 3 (text/plain, inline)]
tag 20501 notabug
thanks

On 05/04/2015 08:31 AM, Raghavendra Prabhu wrote:
> Hi,
> 
> It is possible for mkdir(2) to return EINVAL in certain circumstances.
> However, the man page mkdir(2) doesn't mention that.

Unfortunately, the mkdir(2) man page is owned by the kernel man pages
project, not by coreutils.  We can do nothing about it here.  As such,
I'm closing this bug report from the coreutils bug database, although
you should still feel free to comment here as desired.

> 
> I am hitting it on overlayfs. Other instances reported:
> 
> http://stackoverflow.com/questions/10015377/mkdir-pathname-with-symbol
> http://lists.opensuse.org/opensuse-bugs/2009-05/msg01771.html
> 
> So, it needs to be documented in man page for mkdir(2).

In general, POSIX allows any interface to return additional errors other
than what is strictly documented, as long as those additional errors
make sense and as long as a documented error is not missed.  So
well-written code should never assume that only documented errors can be
returned.

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

[signature.asc (application/pgp-signature, attachment)]
[Message part 5 (message/rfc822, inline)]
From: Raghavendra Prabhu <me <at> rdprabhu.com>
To: bug-coreutils <at> gnu.org
Subject: Include EINVAL in mkdir(2) man page
Date: Mon, 4 May 2015 20:01:31 +0530
[Message part 6 (text/plain, inline)]
Hi,

It is possible for mkdir(2) to return EINVAL in certain circumstances.
However, the man page mkdir(2) doesn't mention that.

I am hitting it on overlayfs. Other instances reported:

http://stackoverflow.com/questions/10015377/mkdir-pathname-with-symbol
http://lists.opensuse.org/opensuse-bugs/2009-05/msg01771.html

So, it needs to be documented in man page for mkdir(2).

------
Raghavendra
[Message part 7 (text/html, inline)]

This bug report was last modified 10 years and 81 days ago.

Previous Next


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