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:
parent
bd6302eae0
commit
8b3a84fa4f
1 changed files with 0 additions and 3 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue