Visualizzatore di immagini
marco ghidinelli
marcogh a linux.it
Lun 15 Lug 2002 11:50:01 UTC
On Sat, Jul 13, 2002 at 01:28:16PM +0200, andrea gelmini wrote:
>
> On Thu, Jul 11, 2002 at 04:44:32PM +0200, marco ghidinelli wrote:
> > ho provato a compilarlo e mi da' questo warning:
> > print.o(.text+0xbfb): the use of `tempnam' is dangerous, better use
> > `mkstemp'
> quindi?
creazione di file temporaneo intuibile, penso. apri un file che gia' c'e'
http://www.gnu.org/manual/glibc-2.2.3/html_node/libc_285.html
Function: char * tmpnam (char *result)
Warning: Between the time the pathname is constructed and the file is
created another process might have created a file with the same name using
tmpnam, leading to a possible security hole. The implementation generates
names which can hardly be predicted, but when opening the file you should
use the O_EXCL flag. Using tmpfile or mkstemp is a safe way to avoid this
problem.
probabilmente su questo prog problemi di sicurezza non ne crea, comunque e'
una funzione sconsigliata.
--
BOFH excuse #223:
The lines are all busy (busied out, that is -- why let them in to begin with?).
Maggiori informazioni sulla lista
Lug
|