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-Tag: v2.6.3~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13791b1eebe97fb345553c5d4de41778064bcdb4;p=thirdparty%2Frsync.git 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; } }