* Skip hidden entries when scanning newly found directories.
This commit is contained in:
parent
310f928fab
commit
6b1ae89af6
@ -485,8 +485,7 @@ inotify_insert_directory(int fd, char *name, const char * path)
|
|||||||
}
|
}
|
||||||
while( (e = readdir(ds)) )
|
while( (e = readdir(ds)) )
|
||||||
{
|
{
|
||||||
if( strcmp(e->d_name, ".") == 0 ||
|
if( e->d_name[0] == '.' )
|
||||||
strcmp(e->d_name, "..") == 0 )
|
|
||||||
continue;
|
continue;
|
||||||
esc_name = escape_tag(e->d_name);
|
esc_name = escape_tag(e->d_name);
|
||||||
if( !esc_name )
|
if( !esc_name )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user