[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lynx-dev LYUtils and mktemp, and string2.h warnings (glibc 2.2)
From: |
Duncan Simpson |
Subject: |
Re: lynx-dev LYUtils and mktemp, and string2.h warnings (glibc 2.2) |
Date: |
Sat, 23 Dec 2000 11:34:15 +0000 |
The messages are a GNU ld feature (all fairly recent versions, at least those
after circ glibc 2.0, aka linux lubc 6). Aklternative linkers may not generate
the messages, which are a good thing. Using mkstemp is probably a better fix
and considerably less effort (if you must use mktemp, use open(2) with both
O_CREAT and O_EXCL set in the flags, and be prepared to handle it failing).
Using a non public tempiorary directory also fixes the problem but takes
either expanding environent variables or ~ (or both). Naturally this must be
done with proper bounds checking.
--
Duncan (-:
"software industry, the: unique industry where selling substandard goods is
legal and you can charge extra for fixing the problems."
; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden