mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-09-12 21:28:25 -04:00
Handle a trailing "/." at the end of a source arg.
This commit is contained in:
1 parent
6cafc1f8bf
commit
d659610afc
1 file changed
+4
-1
@@ -316,8 +316,11 @@ void add_implied_include(const char *arg)
|
||||
if (relative_paths) {
|
||||
if ((cp = strstr(arg, "/./")) != NULL)
|
||||
arg = cp + 3;
|
||||
} else if ((cp = strrchr(arg, '/')) != NULL)
|
||||
} else if ((cp = strrchr(arg, '/')) != NULL) {
|
||||
arg = cp + 1;
|
||||
if (*arg == '.' && arg[1] == '\0')
|
||||
arg++;
|
||||
}
|
||||
arg_len = strlen(arg);
|
||||
if (arg_len) {
|
||||
if (strpbrk(arg, "*[?")) {
|
||||
|
||||
Reference in new issue
Block a user