Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/azatoth/minidlna.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Maggard <jmaggard@users.sourceforge.net>2010-06-04 01:56:53 +0400
committerJustin Maggard <jmaggard@users.sourceforge.net>2010-06-04 01:56:53 +0400
commit2db9da4e601df1bd6bf507b5a089a2a54811178b (patch)
tree42e327d31a4768c252fcc2c92e7e97ff3c6dd59c /inotify.c
parent5cd7734451b7b2a6caeb799bd8fd56108ccf2b4f (diff)
* Skip hidden entries when scanning newly found directories.
Diffstat (limited to 'inotify.c')
-rw-r--r--inotify.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/inotify.c b/inotify.c
index 8a5cfa7..445036a 100644
--- a/inotify.c
+++ b/inotify.c
@@ -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 )