aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-09-10 19:37:08 +1000
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-09-11 16:05:01 +1000
commit83fe7a0e48eec87bdc7372889c4436a06681609a (patch)
tree56c791183089fd41640297b160eedfac22609148
parent1059832ca04505a4e579c9ada1de0bf7dd4771d2 (diff)
downloadbusybox-w32-83fe7a0e48eec87bdc7372889c4436a06681609a.tar.gz
busybox-w32-83fe7a0e48eec87bdc7372889c4436a06681609a.tar.bz2
busybox-w32-83fe7a0e48eec87bdc7372889c4436a06681609a.zip
win32: dos2unix: do no fchmod() because it is not supported
-rw-r--r--coreutils/dos2unix.c2
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 }