]> git.ipfire.org Git - thirdparty/systemd.git/commit
pam_systemd: never reset existing $XDG_RUNTIME_DIR for non-area logins 38405/head
authorMike Yuan <me@yhndnzj.com>
Tue, 29 Jul 2025 13:16:05 +0000 (15:16 +0200)
committerMike Yuan <me@yhndnzj.com>
Tue, 29 Jul 2025 14:20:43 +0000 (16:20 +0200)
commitf55219c1aa7613c8253560ac5b858066a1d774ac
tree4a3b204fe9cbfdb046bfc42cf13c8b89bcdc7282
parent514885b2400ca21eb5282919dfe7465fc295d004
pam_systemd: never reset existing $XDG_RUNTIME_DIR for non-area logins

Follow-up for cfb7abc7fc8a7a3a79d44d0511e65a40566f1949

For whatever reason, ly is setting $XDG_RUNTIME_DIR before invoking
PAM session on its own
(https://github.com/fairyglade/ly/blob/v1.1.1/src/auth.zig#L45),
which after the offending commit will potentially be unset again
by pam_systemd. Let's restore the previous behavior if not switching area.

Fixes #38402
src/login/pam_systemd.c