On Thu, Apr 25, 2002 at 09:36:37AM -0400, Drew Weaver wrote:
| Im getting this error when I compile on RH7.2, I've compiled qpopper on like
| 3 different OS, one was an earlier version of RH (6.2) and I've never seen
| this before, ideas?
|
| ../common/libcommon.a(maillock.o): In function `Qmaillock':
| /root/qpopper4.0.4/common/maillock.c:278: the use of `tempnam' is dangerous,
| better use `mkstemp'
Newer versions of gcc give this warning message. It's actually been in
the tempnam(3) manpage on Linux for some time:
BUGS
The precise meaning of `appropriate' is undefined; it is
unspecified how accessibility of a directory is deter-
mined. Never use this function. Use mkstemp(3) instead.
Unfortunately, mkstemp(3) has different semantics, so it isn't a drop-in
replacement. Furthermore, not all systems have mkstemp(3), and tempnam(3)
is still better than mktemp(3).
-James