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
@@ -482,7 +482,6 @@ static int boot_entries_find_unified(
_cleanup_free_ char *j = NULL, *osrelease = NULL, *cmdline = NULL;
_cleanup_close_ int fd = -1;
dirent_ensure_type(d, de);
if (!dirent_is_file(de))
continue;