diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-06-24 04:29:40 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-06-24 04:29:40 +0900 |
commit | f565b8676fbdab115c068a57952f53a88e50f849 (patch) | |
tree | 394358410989faad9a9b640086e7df3e51954786 /src/portable | |
parent | 98f7a4c8bbebbbd0c7444fb6ea6b87848627c322 (diff) | |
download | systemd-f565b8676fbdab115c068a57952f53a88e50f849.tar.gz |
dirent-util: use readdir_ensure_type() in readdir_no_dot() and FOREACH_DIRENT()
Diffstat (limited to 'src/portable')
-rw-r--r-- | src/portable/portable.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/portable/portable.c b/src/portable/portable.c index 9e33299ed5..a915800da4 100644 --- a/src/portable/portable.c +++ b/src/portable/portable.c @@ -311,7 +311,6 @@ static int extract_now( if (hashmap_get(unit_files, de->d_name)) continue; - dirent_ensure_type(d, de); if (!IN_SET(de->d_type, DT_LNK, DT_REG)) continue; @@ -1396,7 +1395,6 @@ int portable_detach( if (set_contains(unit_files, de->d_name)) continue; - dirent_ensure_type(d, de); if (!IN_SET(de->d_type, DT_LNK, DT_REG)) continue; @@ -1569,7 +1567,6 @@ static int portable_get_state_internal( if (set_contains(unit_files, de->d_name)) continue; - dirent_ensure_type(d, de); if (!IN_SET(de->d_type, DT_LNK, DT_REG)) continue; |