Look for the RSYNC_PARTIAL_DIR environment variable when --partial

was specified (and --partial-dir was not).
This commit is contained in:
Wayne Davison committed 2004-09-18 17:34:56 +00:00
1 parent e0204f5621
commit 075aa18fd4
1 file changed
+8 -4
+8 -4
View File
@@ -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) {