4 ms·
What if the input contains multiple `/./` ? It seems that `cp = strstr(arg, "/./");` only checks once. Maybe wrap in a loop?
by neoneye2 4y ago
What if the input contains multiple `/./` ? It seems that `cp = strstr(arg, "/./");` only checks once. Maybe wrap in a loop?
- account42 4y agoNo, this is for handling the --relative (-R) flag where the part after the first /./ in each source path is a relative destination for that path so e.g. rsync -aR foo/./bar/baz/ dest/ copies data from foo/bar/baz/ to dest/bar/baz/ while any other /./ is effectively meaningless.