]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/login/pam_systemd.c
pam_systemd: Let user record override env vars
authorAdrian Vovk <adrianvovk@gmail.com>
Sun, 4 Feb 2024 16:56:05 +0000 (11:56 -0500)
committerAdrian Vovk <adrianvovk@gmail.com>
Tue, 13 Feb 2024 22:31:35 +0000 (17:31 -0500)
commit592ca6f0efd80b58c318a84e4a9e75624883cfc5
treeceb6690f54d95c0b62833c78b499d13d1d9a040f
parent6d55e3a3641b35dd2bb4306711b4db4004bf6817
pam_systemd: Let user record override env vars

The user record should be the source of truth for the user's environment
variables, and the user should be able to override them in much the same
way that they can if they simply append the variable to their ~/.profile

For example, before $LANG would never get set to the user's preferred
language, because the service manager always ensures that $LANG is set
to something (either the localed config, or a compiled-in default). Thus
the user's preferredLanguage setting was always ignored
src/login/pam_systemd.c