From: Wayne Davison Date: Tue, 9 Aug 2022 04:30:21 +0000 (-0700) Subject: Fix --relative when copying an absolute path. X-Git-Tag: v3.2.5pre2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fabef23bea6e9963c06e218586fda1a823e3c6bf;p=thirdparty%2Frsync.git Fix --relative when copying an absolute path. --- diff --git a/exclude.c b/exclude.c index 2394023f..ba5ca5a3 100644 --- a/exclude.c +++ b/exclude.c @@ -434,8 +434,10 @@ void add_implied_include(const char *arg) *p++ = *cp++; break; case '/': - if (p[-1] == '/') /* This is safe because of the initial slash. */ + if (p[-1] == '/') { /* This is safe because of the initial slash. */ + cp++; break; + } if (relative_paths) { filter_rule const *ent; int found = 0;