aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlib
diff options
context:
space:
mode:
Diffstat (limited to 'src/vlib')
-rw-r--r--src/vlib/unix/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vlib/unix/util.c b/src/vlib/unix/util.c
index 5472751e079..03aef364357 100644
--- a/src/vlib/unix/util.c
+++ b/src/vlib/unix/util.c
@@ -73,7 +73,8 @@ foreach_directory_file (char *dir_name,
if (scan_dirs)
{
if (e->d_type == DT_DIR
- && (!strcmp (e->d_name, ".") || !strcmp (e->d_name, "..")))
+ && (!strncmp (e->d_name, ".", 1) ||
+ !strncmp (e->d_name, "..", 2)))
continue;
}
else