From: Wayne Davison Date: Sat, 15 Oct 2005 19:15:29 +0000 (+0000) Subject: One extra tweak to the just-committed code. X-Git-Tag: v2.6.7pre1~361 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35812ea1f9c246806c8c319ee2fef9f9e86e15e0;p=thirdparty%2Frsync.git One extra tweak to the just-committed code. --- diff --git a/util.c b/util.c index 1297834a..5864b5dc 100644 --- a/util.c +++ b/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 */