X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fm_tmpfil.c;h=4382061fabeb14bc37f9686baf36fcefd87ef595;hb=2f689a1cb907a5de04e6d39ffd217a69af3216c7;hp=31bce67a876bac4452da4c9a7d546c4dd833beff;hpb=0ccd1945560c715e4cc4063209bd0d68b75d5470;p=mmh diff --git a/sbr/m_tmpfil.c b/sbr/m_tmpfil.c index 31bce67..4382061 100644 --- a/sbr/m_tmpfil.c +++ b/sbr/m_tmpfil.c @@ -1,24 +1,34 @@ - /* * m_tmpfil.c -- construct a temporary file * * $Id$ + * + * This code is Copyright (c) 2002, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ #include - +/*************************************************************************** + * DO NOT USE THIS FUNCTION! IT WILL BE REMOVED IN THE FUTURE. + * THIS FUNCTION IS INSECURE. USE THE FUNCTIONS DEFINED IN m_mktemp.c. + ***************************************************************************/ char * m_tmpfil (char *template) { static char tmpfil[BUFSIZ]; snprintf (tmpfil, sizeof(tmpfil), "/tmp/%sXXXXXX", template); +/* + Mkstemp work postponed until later -Doug #ifdef HAVE_MKSTEMP unlink(mkstemp(tmpfil)); #else +*/ unlink(mktemp(tmpfil)); +/* #endif - +*/ return tmpfil; }