dirent-util: use readdir_ensure_type() in readdir_no_dot() and FOREACH_DIRENT()
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user