diff options
author | Ron Yorston <rmy@pobox.com> | 2013-03-26 13:53:03 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2013-03-26 13:53:03 +0000 |
commit | e4f28beec255ea2e233e0f016d4795d13a24bfae (patch) | |
tree | c3037bd6674c1d3ddf123a71c8b593ba3924cce8 | |
parent | bc81569f18e1d1ec53a7f631da68997705a1bf4e (diff) | |
download | busybox-w32-e4f28beec255ea2e233e0f016d4795d13a24bfae.tar.gz busybox-w32-e4f28beec255ea2e233e0f016d4795d13a24bfae.tar.bz2 busybox-w32-e4f28beec255ea2e233e0f016d4795d13a24bfae.zip |
Provide fake fchmod implementation
-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 |