Skip to content

Commit

Permalink
Look for the RSYNC_PARTIAL_DIR environment variable when --partial
Browse files Browse the repository at this point in the history
was specified (and --partial-dir was not).
  • Loading branch information
Wayne Davison committed Sep 18, 2004
1 parent e0204f5 commit 075aa18
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions options.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 075aa18

Please sign in to comment.