X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/9f1865788951e236f114d7348c1ce64754982b12..da6eb9d123caf52640ae0cd6017fb0b657188c89:/exclude.c diff --git a/exclude.c b/exclude.c index a9dee7bd..3b05d888 100644 --- a/exclude.c +++ b/exclude.c @@ -261,6 +261,8 @@ static const char *get_exclude_tok(const char *p, unsigned int *len_ptr, s += 2; } else if (xflags & XFLG_DEF_INCLUDE) mflags |= MATCHFLG_INCLUDE; + if (xflags & XFLG_DIRECTORY) + mflags |= MATCHFLG_DIRECTORY; if (xflags & XFLG_WORD_SPLIT) { const unsigned char *cp = s;