public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/15137] New: linking static version of sem_open gets message "'mktemp' is dangerous, better use `mkstemp'"
@ 2013-02-12 17:03 geir at cray dot com
2013-05-15 9:27 ` [Bug libc/15137] " ondra at iuuk dot mff.cuni.cz
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: geir at cray dot com @ 2013-02-12 17:03 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=15137
Bug #: 15137
Summary: linking static version of sem_open gets message
"'mktemp' is dangerous, better use `mkstemp'"
Product: glibc
Version: 2.11
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: unassigned@sourceware.org
ReportedBy: geir@cray.com
CC: drepper.fsp@gmail.com
Classification: Unclassified
In the following test case that calls sem_open, a link time warning message is
produced when linked statically. sem_open needs to be changed so that this
link time message no longer appears, as it is unacceptable that the use of a
supported system library routine produces this type of link time warning.
$ cat sem_open.c
#include <fcntl.h>
#include <semaphore.h>
#include <errno.h>
int main(int argc, char *argv[])
{
sem_t *mutex;
/* create, initialize semaphore */
if ((mutex = sem_open("mysemaphore", O_CREAT, 0644, 1)) == SEM_FAILED)
perror("semaphore initilization");
return 0;
}
$ gcc -static sem_open.c -lpthread
/usr/lib/../lib64/libpthread.a(sem_open.o): In function `sem_open':
/usr/src/packages/BUILD/glibc-2.11.3/nptl/sem_open.c:333: warning: the use of
`mktemp' is dangerous, better use `mkstemp'
$ gcc sem_open.c -lpthread
$
$
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/15137] linking static version of sem_open gets message "'mktemp' is dangerous, better use `mkstemp'"
2013-02-12 17:03 [Bug libc/15137] New: linking static version of sem_open gets message "'mktemp' is dangerous, better use `mkstemp'" geir at cray dot com
@ 2013-05-15 9:27 ` ondra at iuuk dot mff.cuni.cz
2013-05-15 9:45 ` schwab@linux-m68k.org
2014-06-13 18:50 ` fweimer at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: ondra at iuuk dot mff.cuni.cz @ 2013-05-15 9:27 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=15137
OndrejBilka <ondra at iuuk dot mff.cuni.cz> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ondra at iuuk dot
| |mff.cuni.cz
--- Comment #1 from OndrejBilka <ondra at iuuk dot mff.cuni.cz> 2013-05-15 09:27:33 UTC ---
>From nptl/sem_open.c:
/* We really want to use mktemp here. We cannot use mkstemp
since the file must be opened with a specific mode. The
mode cannot later be set since then we cannot apply the
file create mask. */
how we silence this warning?
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/15137] linking static version of sem_open gets message "'mktemp' is dangerous, better use `mkstemp'"
2013-02-12 17:03 [Bug libc/15137] New: linking static version of sem_open gets message "'mktemp' is dangerous, better use `mkstemp'" geir at cray dot com
2013-05-15 9:27 ` [Bug libc/15137] " ondra at iuuk dot mff.cuni.cz
@ 2013-05-15 9:45 ` schwab@linux-m68k.org
2014-06-13 18:50 ` fweimer at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: schwab@linux-m68k.org @ 2013-05-15 9:45 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=15137
Andreas Schwab <schwab@linux-m68k.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #2 from Andreas Schwab <schwab@linux-m68k.org> 2013-05-15 09:45:18 UTC ---
.
*** This bug has been marked as a duplicate of bug 14327 ***
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/15137] linking static version of sem_open gets message "'mktemp' is dangerous, better use `mkstemp'"
2013-02-12 17:03 [Bug libc/15137] New: linking static version of sem_open gets message "'mktemp' is dangerous, better use `mkstemp'" geir at cray dot com
2013-05-15 9:27 ` [Bug libc/15137] " ondra at iuuk dot mff.cuni.cz
2013-05-15 9:45 ` schwab@linux-m68k.org
@ 2014-06-13 18:50 ` fweimer at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: fweimer at redhat dot com @ 2014-06-13 18:50 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=15137
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags| |security-
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-06-13 18:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-12 17:03 [Bug libc/15137] New: linking static version of sem_open gets message "'mktemp' is dangerous, better use `mkstemp'" geir at cray dot com
2013-05-15 9:27 ` [Bug libc/15137] " ondra at iuuk dot mff.cuni.cz
2013-05-15 9:45 ` schwab@linux-m68k.org
2014-06-13 18:50 ` fweimer at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).