]> git.ipfire.org Git - thirdparty/systemd.git/commit
logind: Properly unescape names of lingering users
authorMichal Koutný <mkoutny@suse.com>
Fri, 25 Nov 2022 16:25:36 +0000 (17:25 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 25 Nov 2022 23:27:16 +0000 (08:27 +0900)
commitf38e89c23ce52efa27bb47f5c3dafecdb987492b
tree34452e4bf300a93031c050b2bfabf142c92ae6e4
parent5bd346feb79ebcd16f8c01702fd2adabb4699426
logind: Properly unescape names of lingering users

Filenames to store user linger requests are created with C-escaping.
When we enumerate the files to acquire ligering users, we use the
filenames verbatim. In the case C-escaping is not an identity map (such
as "DOMAIN\User"), we won't be able to start user instances of
such mangled users.

Unescape filenames when we treat them as usernames again.

Fixes: #25448
src/login/logind.c