#19 gfile.cc: openTempFile() function

open
nobody
None
5
2004-10-17
2004-10-17
LDB
No

I received this warning when I was compiling the source,

: warning: the use of `tmpnam' is dangerous, better
use `mkstemp'

I looked at the code because I am a security freak and
I modified it accordingly.

The patch basically creates

#if HAVE_MKSTEMPS

#elif HAVE_MKSTEMP

#else

#endif

as opposed to

#if HAVE_MKSTEMPS

#else

#endif

#if HAVE_MKSTEMP

#else

#endif

I hope this patch sits well with you ..

Discussion

  • LDB
    LDB
    2004-10-17

    patch to goo/gfile.cc

     
    Attachments