diff options
| -rw-r--r-- | coreutils/dos2unix.c | 2 | ||||
| -rw-r--r-- | include/mingw.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/dos2unix.c b/coreutils/dos2unix.c index e1fbe8538..07398bdfa 100644 --- a/coreutils/dos2unix.c +++ b/coreutils/dos2unix.c | |||
| @@ -58,7 +58,7 @@ static void convert(char *fn, int conv_type) | |||
| 58 | 58 | ||
| 59 | temp_fn = xasprintf("%sXXXXXX", resolved_fn); | 59 | temp_fn = xasprintf("%sXXXXXX", resolved_fn); |
| 60 | i = xmkstemp(temp_fn); | 60 | i = xmkstemp(temp_fn); |
| 61 | if (!ENABLE_PLATFORM_MINGW32 && fchmod(i, st.st_mode) == -1) | 61 | if (fchmod(i, st.st_mode) == -1) |
| 62 | bb_simple_perror_msg_and_die(temp_fn); | 62 | bb_simple_perror_msg_and_die(temp_fn); |
| 63 | 63 | ||
| 64 | out = xfdopen_for_write(i); | 64 | out = xfdopen_for_write(i); |
diff --git a/include/mingw.h b/include/mingw.h index b39fcae3d..577e48a2a 100644 --- a/include/mingw.h +++ b/include/mingw.h | |||
| @@ -228,7 +228,7 @@ typedef int nlink_t; | |||
| 228 | #define S_IWOTH (S_IWGRP >> 3) | 228 | #define S_IWOTH (S_IWGRP >> 3) |
| 229 | #define S_IXOTH (S_IXGRP >> 3) | 229 | #define S_IXOTH (S_IXGRP >> 3) |
| 230 | 230 | ||
| 231 | NOIMPL(fchmod,int fildes UNUSED_PARAM, mode_t mode UNUSED_PARAM); | 231 | IMPL(fchmod,int,0,int fildes UNUSED_PARAM, mode_t mode UNUSED_PARAM); |
| 232 | NOIMPL(fchown,int fd UNUSED_PARAM, uid_t uid UNUSED_PARAM, gid_t gid UNUSED_PARAM); | 232 | NOIMPL(fchown,int fd UNUSED_PARAM, uid_t uid UNUSED_PARAM, gid_t gid UNUSED_PARAM); |
| 233 | int mingw_mkdir(const char *path, int mode); | 233 | int mingw_mkdir(const char *path, int mode); |
| 234 | #define mkdir mingw_mkdir | 234 | #define mkdir mingw_mkdir |
