* Skip hidden entries when scanning newly found directories.

This commit is contained in:
Justin Maggard 2010-06-03 21:56:53 +00:00
parent 310f928fab
commit 6b1ae89af6

View File

@ -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 )