aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2013-03-26 13:53:03 +0000
committerRon Yorston <rmy@pobox.com>2013-03-26 13:53:03 +0000
commite4f28beec255ea2e233e0f016d4795d13a24bfae (patch)
treec3037bd6674c1d3ddf123a71c8b593ba3924cce8 /coreutils
parentbc81569f18e1d1ec53a7f631da68997705a1bf4e (diff)
downloadbusybox-w32-e4f28beec255ea2e233e0f016d4795d13a24bfae.tar.gz
busybox-w32-e4f28beec255ea2e233e0f016d4795d13a24bfae.tar.bz2
busybox-w32-e4f28beec255ea2e233e0f016d4795d13a24bfae.zip
Provide fake fchmod implementation
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/dos2unix.c2
1 files changed, 1 insertions, 1 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);