t3700: fix broken test under !POSIXPERM
[gitweb.git] / tmp-objdir.c
index 780af8e7521bfe98269cb11d32ff0266dc76dea7..64435f23a483dfc40e91437f0689bdfb9ac4b8f8 100644 (file)
@@ -188,7 +188,7 @@ static int read_dir_paths(struct string_list *out, const char *path)
                return -1;
 
        while ((de = readdir(dh)))
-               if (!is_dot_or_dotdot(de->d_name))
+               if (de->d_name[0] != '.')
                        string_list_append(out, de->d_name);
 
        closedir(dh);