Check path for len exactly 1 when comparing on '.'.

This commit is contained in:
Klaas Freitag 2012-09-24 15:54:17 +03:00
parent 0dfa61650d
commit 128926cac7

View file

@ -1090,7 +1090,10 @@ static int _csync_correct_id(CSYNC *ctx) {
CSYNC_LOG(CSYNC_LOG_PRIORITY_TRACE, "correct ID on dir: %s", path);
/* handle the . path */
if( path && path[0] == '.' ) path = NULL;
if( path && path[0] == '.' && strlen(path) == 1) {
SAFE_FREE(path);
path = NULL;
}
while( path ) {
uint64_t h;