mirror of
https://github.com/troglobit/libite.git
synced 2026-10-04 22:44:10 +07:00
rsync: fix return value when copying a single file
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
+2
-2
@@ -85,9 +85,9 @@ int rsync(char *src, char *dst, int opt, int (*filter)(const char *file))
|
||||
return 1;
|
||||
|
||||
if (copy(src, dst, keep_mtim))
|
||||
result++;
|
||||
return 1;
|
||||
|
||||
return errno;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Copy dir as well? */
|
||||
|
||||
Reference in New Issue
Block a user