From: Wayne Davison Date: Wed, 22 Sep 2004 04:12:13 +0000 (+0000) Subject: If the partial-dir value is relative, add a directory-exclude for it X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/13791b1eebe97fb345553c5d4de41778064bcdb4 If the partial-dir value is relative, add a directory-exclude for it to the end of the user's exclude list. --- diff --git a/options.c b/options.c index 348a2da5..3cee4ba3 100644 --- a/options.c +++ b/options.c @@ -839,6 +839,10 @@ int parse_arguments(int *argc, const char ***argv, int frommain) if (partial_dir) { if (!*partial_dir || strcmp(partial_dir, ".") == 0) partial_dir = NULL; + else if (*partial_dir != '/') { + add_exclude(&exclude_list, partial_dir, + XFLG_DIRECTORY); + } keep_partial = 1; } }