libite: Copy utility fixes and new functionality

- Add support for symlinks to copyfile()
- Fix memory leak in copy_filep()
- New function, fsendfile(), copy data between FILE streams

Also, minor whitespace and coding style cleanup.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2014-04-12 15:08:56 +02:00
1 parent 499f4d45d3
commit bf9d1ec012
3 files changed
+86 -19

No files matched your search

+1 -1
View File
@@ -61,7 +61,7 @@ int rsync(char *src, char *dst, int delete, int (*filter) (const char *file))
void copy(char *src, char *dst)
{
errno = 0;
copyfile(src, dst, 0);
copyfile(src, dst, 0, 1);
if (errno) {
if (errno == EEXIST)
errno = 0;