GNU bug report logs -
#20501
Include EINVAL in mkdir(2) man page
Previous Next
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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 20501 in the body.
You can then email your comments to 20501 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org:
bug#20501; Package
coreutils.
(Mon, 04 May 2015 15:36:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Raghavendra Prabhu <me <at> rdprabhu.com>:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org.
(Mon, 04 May 2015 15:36:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (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 2 (text/html, inline)]
Added tag(s) notabug.
Request was from
Eric Blake <eblake <at> redhat.com>
to
control <at> debbugs.gnu.org.
(Mon, 04 May 2015 15:45:04 GMT)
Full text and
rfc822 format available.
Reply sent
to
Eric Blake <eblake <at> redhat.com>:
You have taken responsibility.
(Mon, 04 May 2015 15:45:05 GMT)
Full text and
rfc822 format available.
Notification sent
to
Raghavendra Prabhu <me <at> rdprabhu.com>:
bug acknowledged by developer.
(Mon, 04 May 2015 15:45:06 GMT)
Full text and
rfc822 format available.
Message #12 received at 20501-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (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)]
Information forwarded
to
bug-coreutils <at> gnu.org:
bug#20501; Package
coreutils.
(Mon, 04 May 2015 15:50:03 GMT)
Full text and
rfc822 format available.
Message #15 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Apologies for the report. Looks like mkdir(2) man page is maintained by
man-pages project, I will report it there. Thanks.
On Mon, May 4, 2015 at 8:01 PM, Raghavendra Prabhu <me <at> rdprabhu.com> wrote:
> 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 2 (text/html, inline)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org.
(Tue, 02 Jun 2015 11:24:06 GMT)
Full text and
rfc822 format available.
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.