diff options
Diffstat (limited to 'coreutils/dos2unix.c')
-rw-r--r-- | coreutils/dos2unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/dos2unix.c b/coreutils/dos2unix.c index df2376bea..add1da666 100644 --- a/coreutils/dos2unix.c +++ b/coreutils/dos2unix.c | |||
@@ -60,7 +60,7 @@ static void convert(char *fn, int conv_type) | |||
60 | 60 | ||
61 | temp_fn = xasprintf("%sXXXXXX", resolved_fn); | 61 | temp_fn = xasprintf("%sXXXXXX", resolved_fn); |
62 | i = xmkstemp(temp_fn); | 62 | i = xmkstemp(temp_fn); |
63 | if (fchmod(i, st.st_mode) == -1) | 63 | if (!ENABLE_PLATFORM_MINGW32 && fchmod(i, st.st_mode) == -1) |
64 | bb_simple_perror_msg_and_die(temp_fn); | 64 | bb_simple_perror_msg_and_die(temp_fn); |
65 | 65 | ||
66 | out = xfdopen_for_write(i); | 66 | out = xfdopen_for_write(i); |