Merge pull request #20004 from yuwata/readdir-ensure-type

dirent-util: introduce readdir_ensure_type()
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2021-06-24 15:11:06 +02:00
committed by GitHub
16 changed files with 20 additions and 42 deletions
-2
View File
@@ -795,8 +795,6 @@ _public_ int sd_get_uids(uid_t **users) {
int k;
uid_t uid;
dirent_ensure_type(d, de);
if (!dirent_is_file(de))
continue;