mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 13:35:58 +03:00
Check path for len exactly 1 when comparing on '.'.
This commit is contained in:
parent
0dfa61650d
commit
128926cac7
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue