dirent-util: use readdir_ensure_type() in readdir_no_dot() and FOREACH_DIRENT()

This commit is contained in:
Yu Watanabe
2021-06-24 04:29:40 +09:00
parent 98f7a4c8bb
commit f565b8676f
16 changed files with 4 additions and 39 deletions
-1
View File
@@ -321,7 +321,6 @@ int unit_file_build_name_map(
if (hashmap_contains(ids, de->d_name))
continue;
dirent_ensure_type(d, de);
if (de->d_type == DT_LNK) {
/* We don't explicitly check for alias loops here. unit_ids_map_get() which
* limits the number of hops should be used to access the map. */