]> git.ipfire.org Git - thirdparty/systemd.git/commit
logind: fix escaping of various fields in state files
authorLennart Poettering <lennart@poettering.net>
Mon, 19 May 2025 09:56:28 +0000 (11:56 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 21 May 2025 15:33:40 +0000 (17:33 +0200)
commit232f4e12fe526bfbcd5c7bd857bbb6a0db818cbc
treeda3b1dec9700671fa85e55aa880eefb741484c56
parent019c8ea26a5b99584c60570caee8a573d4fafcfc
logind: fix escaping of various fields in state files

parse_env_file() applies a certain kind of unescaping, and we really
need to match that when writing out arbitrary strings.

(This gets a bit confusing in the inhibit case, since that already
applied one level of escaping on its own...)
src/login/logind-inhibit.c
src/login/logind-session.c
src/login/logind-user.c