Merge copyfd and copy_file_chunk

This commit is contained in:
Glenn L McGrath
2002-12-13 08:20:44 +00:00
parent a67dffe186
commit 25fe94fd32
5 changed files with 57 additions and 68 deletions

View File

@@ -183,7 +183,7 @@ int copy_file(const char *source, const char *dest, int flags)
}
}
if (copy_file_chunk(sfp, dfp, -1) < 0)
if (copyfd(fileno(sfp), fileno(dfp), 0) == -1)
status = -1;
if (fclose(dfp) < 0) {