[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/272] New: misleading warning message on linking with tmpnam()
From: |
nuclear at siggraph dot org |
Subject: |
[Bug ld/272] New: misleading warning message on linking with tmpnam() |
Date: |
20 Jul 2004 02:03:21 -0000 |
When linking a program that contains a call to tmpnam() of the standard library
there is a misleading warning message:
"warning: the use of `tmpnam' is dangerous, better use `mkstemp'"
It is misleading because tmpnam and mkstemp are *not* equivalent, tmpnam() just
creates a unique name, while mkstemp() creates a temporary file.
Sure tmpnam() can be used by someone to get a filename to be used for creating
temporary files, but it certenly can be used in other contexts as well for
unique name creation, in which case mkstemp() is *not* a substitute, and the
warning is just annoying.
--
Summary: misleading warning message on linking with tmpnam()
Product: binutils
Version: 2.14
Status: NEW
Severity: minor
Priority: P2
Component: ld
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: nuclear at siggraph dot org
CC: bug-binutils at gnu dot org
http://sources.redhat.com/bugzilla/show_bug.cgi?id=272
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug ld/272] New: misleading warning message on linking with tmpnam(),
nuclear at siggraph dot org <=