diff options
-rw-r--r-- | coreutils/dos2unix.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/coreutils/dos2unix.c b/coreutils/dos2unix.c index 1911f5319..1c8b4af1b 100644 --- a/coreutils/dos2unix.c +++ b/coreutils/dos2unix.c | |||
@@ -41,7 +41,9 @@ static void convert(char *fn, int conv_type) | |||
41 | temp_fn = xasprintf("%sXXXXXX", resolved_fn); | 41 | temp_fn = xasprintf("%sXXXXXX", resolved_fn); |
42 | i = mkstemp(temp_fn); | 42 | i = mkstemp(temp_fn); |
43 | if (i == -1 | 43 | if (i == -1 |
44 | #if !ENABLE_PLATFORM_MINGW32 | ||
44 | || fchmod(i, st.st_mode) == -1 | 45 | || fchmod(i, st.st_mode) == -1 |
46 | #endif | ||
45 | ) { | 47 | ) { |
46 | bb_simple_perror_msg_and_die(temp_fn); | 48 | bb_simple_perror_msg_and_die(temp_fn); |
47 | } | 49 | } |