1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-21 00:01:26 +01:00

Removed bogus mkstemp() code.

This commit is contained in:
Wayne Davison 2001-06-15 23:55:08 +00:00
parent bd6302eae0
commit 8b3a84fa4f

View file

@ -1101,14 +1101,11 @@ gettempname(void)
if (!(s = getsparam("TMPPREFIX")))
s = DEFAULT_TMPPREFIX;
#ifdef HAVE_MKSTEMP
ret = ((char *) mkstemp(dyncat(unmeta(s), "XXXXXX")));
#ifdef HAVE__MKTEMP
/* Zsh uses mktemp() safely, so silence the warnings */
ret = ((char *) _mktemp(dyncat(unmeta(s), "XXXXXX")));
#else
ret = ((char *) mktemp(dyncat(unmeta(s), "XXXXXX")));
#endif
#endif
unqueue_signals();