forked from enlightenment/efl
efreet: check for subpath
Need to check if the path we want to add is a subpath of an already added path. SVN revision: 57407
This commit is contained in:
parent
d2dfe7422a
commit
494c6c6d4f
|
@ -865,8 +865,7 @@ efreet_cache_desktop_add(Efreet_Desktop *desktop)
|
|||
for (i = 0; i < arr->array_count; i++)
|
||||
{
|
||||
/* Check if we already have this dir in cache */
|
||||
/* TODO: Need to check if p is a subdir */
|
||||
if (!strcmp(p, arr->array[i]))
|
||||
if (!strncmp(p, arr->array[i], strlen(arr->array[i])))
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue