]> git.ipfire.org Git - thirdparty/systemd.git/commit
tmpfiles: only populate uid and gid caches once
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 3 Dec 2023 14:28:52 +0000 (15:28 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 9 Feb 2024 16:57:41 +0000 (17:57 +0100)
commit376d0495f5b9170435824cf9fb067c1077b6cc7e
tree6ea5dc37c78e8649a46ffdbaea245939e60589d4
parent5ac41a1672fd1562ed9d1605c215f3f4d88cc2d6
tmpfiles: only populate uid and gid caches once

a3451c2c4ce7d3c02451f6ace4ee9f873880f78f added offline uid/gid support in a way
where the <root>/etc/passwd and <root>/etc/group would be read anew for each
configuration file that was parsed. The result would always be the same, so I
assume that this was an oversight. Let's use a global cache and and read the
file just once.
src/tmpfiles/tmpfiles.c