mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-05-24 23:05:52 -04:00
One extra tweak to the just-committed code.
This commit is contained in:
2
util.c
2
util.c
@@ -791,7 +791,7 @@ char *sanitize_path(char *dest, const char *p, const char *rootdir, int depth)
|
||||
* always be left pointing after a slash
|
||||
*/
|
||||
if (*p == '.' && (p[1] == '/' || p[1] == '\0')) {
|
||||
if (leave_one_dotdir && p[1] && sanp != dest)
|
||||
if (leave_one_dotdir && p[1])
|
||||
leave_one_dotdir = 0;
|
||||
else {
|
||||
/* skip "." component */
|
||||
|
||||
Reference in New Issue
Block a user