Debian Bug report logs -
#357893
manpages-dev: tempnam indicates that the retval (rather than errno) is EEXIST
Reported by: Justin Pryzby <justinpryzby@users.sourceforge.net>
Date: Mon, 20 Mar 2006 01:48:02 UTC
Severity: minor
Tags: fixed-upstream
Found in version manpages-dev/2.22-1
Fixed in version 2.26-1
Done: Justin Pryzby <justinpryzby@users.sourceforge.net>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, Martin Schulze <joey@debian.org>:
Bug#357893; Package manpages-dev.
(full text, mbox, link).
Acknowledgement sent to Justin Pryzby <justinpryzby@users.sourceforge.net>:
New Bug report received and forwarded. Copy sent to Martin Schulze <joey@debian.org>.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: manpages-dev
Version: 2.22-1
Severity: minor
I could rant for a while about how the temp file creation functions
all suck, but I'll spare you, but for this (very minor) problem in
tempnam(3):
Upon failure to find a unique name, glibc will return EEXIST.
In fact, EEXIST is defined (here) as 17, which is a nonsensical
error return value; presumably, what's intended is:
Upon failure to find a unique name, glibc will return NULL and set
errno to EEXIST.
(This could also go into "ERRORS", but makes sense in NOTES, too.)
Information forwarded to debian-bugs-dist@lists.debian.org, Martin Schulze <joey@debian.org>:
Bug#357893; Package manpages-dev.
(full text, mbox, link).
Acknowledgement sent to "Michael Kerrisk" <mtk-manpages@gmx.net>:
Extra info received and forwarded to list. Copy sent to Martin Schulze <joey@debian.org>.
(full text, mbox, link).
Message #10 received at 357893@bugs.debian.org (full text, mbox, reply):
tags 357893 fixed-upstream
thanks
> I could rant for a while about how the temp file creation functions
> all suck, but I'll spare you, but for this (very minor) problem in
> tempnam(3):
>
> Upon failure to find a unique name, glibc will return EEXIST.
>
> In fact, EEXIST is defined (here) as 17, which is a nonsensical
> error return value; presumably, what's intended is:
>
> Upon failure to find a unique name, glibc will return NULL and set
> errno to EEXIST.
>
> (This could also go into "ERRORS", but makes sense in NOTES, too.)
I agree -- the wording is poor. I have fixed for 2.26.
Cheers,
Michael
--
Michael Kerrisk
maintainer of Linux man pages Sections 2, 3, 4, 5, and 7
Want to help with man page maintenance?
Grab the latest tarball at
ftp://ftp.win.tue.nl/pub/linux-local/manpages/,
read the HOWTOHELP file and grep the source
files for 'FIXME'.
Tags added: fixed-upstream
Request was from "Michael Kerrisk" <mtk-manpages@gmx.net>
to control@bugs.debian.org.
(full text, mbox, link).
Reply sent to Justin Pryzby <justinpryzby@users.sourceforge.net>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to Justin Pryzby <justinpryzby@users.sourceforge.net>:
Bug acknowledged by developer.
(full text, mbox, link).
Message #17 received at 357893-done@bugs.debian.org (full text, mbox, reply):
Version: 2.26-1
These bugs are all reported fixed by the upstream manpages maintainer,
Michael Kerrisk. The bug numbers and titles are:
#355468 suggestion to unuglify execle prototype
#357148 mmap(2):: see also::shm_open is in section 3
#357739 Formatting error resulting in a missing word in stdin.3
#357893 tempnam indicates that the retval (rather than errno) is EEXIST
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Wed, 27 Jun 2007 04:40:43 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Thu Mar 9 10:01:47 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.