aboutsummaryrefslogtreecommitdiff
path: root/debianutils
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2014-01-07 22:39:35 +0000
committerRon Yorston <rmy@pobox.com>2014-01-07 22:39:35 +0000
commit7f0cb741c77f74a48ffd10a1e7d36ff2adf95f03 (patch)
tree11b7d44f8c42d7d39d641e56d6fdd5ef7aed94d6 /debianutils
parent94150aba92d308e417aa552a1b3a957be264b423 (diff)
downloadbusybox-w32-7f0cb741c77f74a48ffd10a1e7d36ff2adf95f03.tar.gz
busybox-w32-7f0cb741c77f74a48ffd10a1e7d36ff2adf95f03.tar.bz2
busybox-w32-7f0cb741c77f74a48ffd10a1e7d36ff2adf95f03.zip
Implement POSIX-compliant mktemp for WIN32
Diffstat (limited to 'debianutils')
-rw-r--r--debianutils/mktemp.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/debianutils/mktemp.c b/debianutils/mktemp.c
index 7f60ca234..983d7a246 100644
--- a/debianutils/mktemp.c
+++ b/debianutils/mktemp.c
@@ -94,11 +94,7 @@ int mktemp_main(int argc UNUSED_PARAM, char **argv)
94 94
95 if (opts & OPT_u) { 95 if (opts & OPT_u) {
96 chp = mktemp(chp); 96 chp = mktemp(chp);
97#if !ENABLE_PLATFORM_MINGW32
98 if (chp[0] == '\0') 97 if (chp[0] == '\0')
99#else
100 if (chp == NULL || chp[0] == '\0')
101#endif
102 goto error; 98 goto error;
103 } else if (opts & OPT_d) { 99 } else if (opts & OPT_d) {
104 if (mkdtemp(chp) == NULL) 100 if (mkdtemp(chp) == NULL)