mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-27 16:18:16 -04:00
Look for the RSYNC_PARTIAL_DIR environment variable when --partial
was specified (and --partial-dir was not).
This commit is contained in:
1 parent
e0204f5621
commit
075aa18fd4
1 file changed
+8
-4
@@ -833,10 +833,14 @@ int parse_arguments(int *argc, const char ***argv, int frommain)
|
||||
link_dest ? "--link-dest" : "--compare-dest");
|
||||
return 0;
|
||||
}
|
||||
} else if (partial_dir) {
|
||||
if (strcmp(partial_dir, ".") == 0)
|
||||
partial_dir = NULL;
|
||||
keep_partial = 1;
|
||||
} else {
|
||||
if (keep_partial && !partial_dir)
|
||||
partial_dir = getenv("RSYNC_PARTIAL_DIR");
|
||||
if (partial_dir) {
|
||||
if (!*partial_dir || strcmp(partial_dir, ".") == 0)
|
||||
partial_dir = NULL;
|
||||
keep_partial = 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (files_from) {
|
||||
|
||||
Reference in new issue
Block a user