]> git.ipfire.org Git - thirdparty/systemd.git/commit
sysusers: convert to conf_file_read()
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 3 Dec 2023 15:34:15 +0000 (16:34 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 9 Feb 2024 16:57:41 +0000 (17:57 +0100)
commit15d660fb418a6017fdf416bd0f92b6e268543383
tree00b231f86cd8faa1206238810b0b4193854f0bff
parentf6a1346e4e738f77afec5c10454edb833a502ba6
sysusers: convert to conf_file_read()

I was annoyed that systemd-sysusers doesn't print any info when it opens a
config file. Its read_config_file() started out the same as the one in tmpfiles,
and then they diverged. The one in tmpfiles has that logging, hence the rework
to use it here too and get better logging. The two programs should provide
similar functionality, so using a common helper will make it easier to extend
them in tandem later.

No functional change apart from the log info.

The userdata argument (Context) is moved to the last position as requested in
the review.
src/basic/conf-files.c
src/sysusers/sysusers.c