diff options
author | Neale Ranns <nranns@cisco.com> | 2018-04-06 09:18:11 -0700 |
---|---|---|
committer | Chris Luke <chris_luke@comcast.com> | 2018-04-18 14:23:57 +0000 |
commit | 6cdad6d8ff0378dbc5037bb4e52e5016eaf2596e (patch) | |
tree | 9c61c9034e4b8c50f33b51e024439776c0eed522 /src/vlib/unix | |
parent | 332e0440a51ccc71356cd82b0908dee5f46ba155 (diff) |
Fixes for 'make UNATTENDED=yes CC=clang CXX=clang verify'
Change-Id: I994649761fe2e66e12ae0e49a84fb1d0a966ddfb
Signed-off-by: Neale Ranns <nranns@cisco.com>
(cherry picked from commit 756cd9441752fc8f84104c9ee19099506ba89f85)
Diffstat (limited to 'src/vlib/unix')
-rw-r--r-- | src/vlib/unix/util.c | 3 |
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 |