diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-06-24 15:11:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-24 15:11:06 +0200 |
commit | 280e4b368ed0a65ac62e2c3fc01a0db73fa9c24a (patch) | |
tree | 608869f8fba2086ca231ec2cfb3255613b9e10fe /src/portable | |
parent | 4ef65db34b279d4ad7d9dc5f68acac0760f8e6c8 (diff) | |
parent | f565b8676fbdab115c068a57952f53a88e50f849 (diff) | |
download | systemd-280e4b368ed0a65ac62e2c3fc01a0db73fa9c24a.tar.gz |
Merge pull request #20004 from yuwata/readdir-ensure-type
dirent-util: introduce readdir_ensure_type()
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 a9ced3c865..4cf5fb4f0a 100644 --- a/src/portable/portable.c +++ b/src/portable/portable.c @@ -312,7 +312,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; @@ -1397,7 +1396,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; @@ -1570,7 +1568,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; |