summaryrefslogtreecommitdiff
path: root/openbsd-compat/mktemp.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2020-10-27 16:46:31 +1100
committerDamien Miller <djm@mindrot.org>2020-10-27 16:50:38 +1100
commit33267feaffd5d98aa56d2f0b3a99ec352effe938 (patch)
tree908700c153a184eff4898b8ff2a62c2ee9832ea7 /openbsd-compat/mktemp.c
parent492d70e18bad5a8c97d05f5eddac817171e88d2c (diff)
downloadopenssh-git-33267feaffd5d98aa56d2f0b3a99ec352effe938.tar.gz
Remove checks for strict POSIX mkdtemp()
We needed a mkdtemp() that accepted template paths that did not end in XXXXXX a long time ago for KRB4, but that code is long deprecated. We no longer need to replace mkdtemp() for strictly following POSIX. ok dtucker@
Diffstat (limited to 'openbsd-compat/mktemp.c')
-rw-r--r--openbsd-compat/mktemp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsd-compat/mktemp.c b/openbsd-compat/mktemp.c
index 4eb52f42..ac922c1e 100644
--- a/openbsd-compat/mktemp.c
+++ b/openbsd-compat/mktemp.c
@@ -34,7 +34,7 @@
#include <ctype.h>
#include <unistd.h>
-#if !defined(HAVE_MKDTEMP) || defined(HAVE_STRICT_MKSTEMP)
+#if !defined(HAVE_MKDTEMP)
#define MKTEMP_NAME 0
#define MKTEMP_FILE 1
@@ -138,4 +138,4 @@ mkdtemp(char *path)
return(error ? NULL : path);
}
-#endif /* !defined(HAVE_MKDTEMP) || defined(HAVE_STRICT_MKSTEMP) */
+#endif /* !defined(HAVE_MKDTEMP) */