diff options
author | Ron Yorston <rmy@pobox.com> | 2014-01-07 22:39:35 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2014-01-07 22:39:35 +0000 |
commit | 7f0cb741c77f74a48ffd10a1e7d36ff2adf95f03 (patch) | |
tree | 11b7d44f8c42d7d39d641e56d6fdd5ef7aed94d6 /debianutils | |
parent | 94150aba92d308e417aa552a1b3a957be264b423 (diff) | |
download | busybox-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.c | 4 |
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) |