mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Check path for len exactly 1 when comparing on '.'.
This commit is contained in:
parent
0dfa61650d
commit
128926cac7
@ -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 New Issue
Block a user