diff options
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 5808ca48c..c9d239f9a 100644 --- a/libbb/copy_file.c +++ b/libbb/copy_file.c | |||
@@ -181,7 +181,7 @@ int copy_file(const char *source, const char *dest, int flags) | |||
181 | } | 181 | } |
182 | } | 182 | } |
183 | 183 | ||
184 | if (bb_copyfd(fileno(sfp), fileno(dfp), 0) == -1) | 184 | if (bb_copyfd_eof(fileno(sfp), fileno(dfp)) == -1) |
185 | status = -1; | 185 | status = -1; |
186 | 186 | ||
187 | if (fclose(dfp) < 0) { | 187 | if (fclose(dfp) < 0) { |