X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fm_tmpfil.c;fp=sbr%2Fm_tmpfil.c;h=0000000000000000000000000000000000000000;hp=c0a60bca624795609e8db66c42f5633efa4d69b5;hb=b067ff5c465a5d243ce5a19e562085a9a1a97215;hpb=a485ed478abbd599d8c9aab48934e7a26733ecb1 diff --git a/sbr/m_tmpfil.c b/sbr/m_tmpfil.c deleted file mode 100644 index c0a60bc..0000000 --- a/sbr/m_tmpfil.c +++ /dev/null @@ -1,32 +0,0 @@ -/* - * m_tmpfil.c -- construct a temporary file - * - * 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; -}