]> git.ipfire.org Git - thirdparty/systemd.git/commit
logind: port logind state files to fopen_tmpfile_linkable()
authorLennart Poettering <lennart@poettering.net>
Mon, 19 May 2025 08:15:25 +0000 (10:15 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 21 May 2025 15:33:40 +0000 (17:33 +0200)
commit019c8ea26a5b99584c60570caee8a573d4fafcfc
treea950ded193b0b1085545cb2feeca40194c1cf987
parente27333b2ccd34545dbc7d26d34a1c24179f989ce
logind: port logind state files to fopen_tmpfile_linkable()

This replaces use of fopen_temporary() with fopen_tmpfile_linkable() +
flink_tmpfile(). This both shortens the code and means we use O_TMPFILE
for installing these files, which is always good.

No change in behaviour otherwise.
src/login/logind-inhibit.c
src/login/logind-seat.c
src/login/logind-session.c
src/login/logind-user.c