summaryrefslogtreecommitdiffstats
path: root/src/delta
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-06-23 21:29:40 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-06-23 21:29:40 +0200
commitf565b8676fbdab115c068a57952f53a88e50f849 (patch)
tree394358410989faad9a9b640086e7df3e51954786 /src/delta
parentdirent-util: introduce readdir_ensure_type() (diff)
downloadsystemd-f565b8676fbdab115c068a57952f53a88e50f849.tar.xz
systemd-f565b8676fbdab115c068a57952f53a88e50f849.zip
dirent-util: use readdir_ensure_type() in readdir_no_dot() and FOREACH_DIRENT()
Diffstat (limited to 'src/delta')
-rw-r--r--src/delta/delta.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/delta/delta.c b/src/delta/delta.c
index 9ebe435a49..f78c6b9c0d 100644
--- a/src/delta/delta.c
+++ b/src/delta/delta.c
@@ -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;