]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/delta/delta.c
dirent-util: use readdir_ensure_type() in readdir_no_dot() and FOREACH_DIRENT()
[thirdparty/systemd.git] / src / delta / delta.c
index 9ebe435a498e4ca7d18d46c01149f05504ede824..f78c6b9c0d3ee8c549e966f84804e14ab0cf6d90 100644 (file)
@@ -311,8 +311,6 @@ static int enumerate_dir(
         }
 
         FOREACH_DIRENT_ALL(de, d, return -errno) {
-                dirent_ensure_type(d, de);
-
                 if (dropins && de->d_type == DT_DIR && endswith(de->d_name, ".d")) {
                         if (!GREEDY_REALLOC0(dirs, n_dirs + 2))
                                 return -ENOMEM;