diff options
author | Justin Maggard <jmaggard@users.sourceforge.net> | 2010-06-04 01:56:53 +0400 |
---|---|---|
committer | Justin Maggard <jmaggard@users.sourceforge.net> | 2010-06-04 01:56:53 +0400 |
commit | 2db9da4e601df1bd6bf507b5a089a2a54811178b (patch) | |
tree | 42e327d31a4768c252fcc2c92e7e97ff3c6dd59c /inotify.c | |
parent | 5cd7734451b7b2a6caeb799bd8fd56108ccf2b4f (diff) |
* Skip hidden entries when scanning newly found directories.
Diffstat (limited to 'inotify.c')
-rw-r--r-- | inotify.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -485,8 +485,7 @@ inotify_insert_directory(int fd, char *name, const char * path) } while( (e = readdir(ds)) ) { - if( strcmp(e->d_name, ".") == 0 || - strcmp(e->d_name, "..") == 0 ) + if( e->d_name[0] == '.' ) continue; esc_name = escape_tag(e->d_name); if( !esc_name ) |