diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2002-12-13 08:20:44 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2002-12-13 08:20:44 +0000 |
commit | 25fe94fd32f39a76294456a7bc7b8dd0595afb0d (patch) | |
tree | 5f41636eb6f772de78a17e90189da6aeee3f32a7 /libbb/copy_file.c | |
parent | a67dffe186eefb6cf75c08422dbfa0e4a752c692 (diff) | |
download | busybox-w32-25fe94fd32f39a76294456a7bc7b8dd0595afb0d.tar.gz busybox-w32-25fe94fd32f39a76294456a7bc7b8dd0595afb0d.tar.bz2 busybox-w32-25fe94fd32f39a76294456a7bc7b8dd0595afb0d.zip |
Merge copyfd and copy_file_chunk
Diffstat (limited to 'libbb/copy_file.c')
-rw-r--r-- | libbb/copy_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/copy_file.c b/libbb/copy_file.c index 5f667cf4f..23a2d75a3 100644 --- a/libbb/copy_file.c +++ b/libbb/copy_file.c | |||
@@ -183,7 +183,7 @@ int copy_file(const char *source, const char *dest, int flags) | |||
183 | } | 183 | } |
184 | } | 184 | } |
185 | 185 | ||
186 | if (copy_file_chunk(sfp, dfp, -1) < 0) | 186 | if (copyfd(fileno(sfp), fileno(dfp), 0) == -1) |
187 | status = -1; | 187 | status = -1; |
188 | 188 | ||
189 | if (fclose(dfp) < 0) { | 189 | if (fclose(dfp) < 0) { |