]> git.ipfire.org Git - thirdparty/systemd.git/commit
exec-invoke: respect $HOME set via PAM
authorLennart Poettering <lennart@poettering.net>
Fri, 24 Jan 2025 10:17:55 +0000 (11:17 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 6 Feb 2025 08:23:49 +0000 (09:23 +0100)
commitc554acd11d4dc778df1393c3a7e829a24de0455e
tree12c00606d07d4541da6ee195179462c6ef99515b
parent229d91793f653ba41b4f80c2466b614cd5745443
exec-invoke: respect $HOME set via PAM

This follows the same recent change in util-linux:

https://github.com/util-linux/util-linux/pull/3354

i.e. we generally want that PAM modules can override $HOME and it is
honoured for the CWD after login.

(This renames the 'home' variable we maintained sofar to 'pwent_home',
to clarify that it's the home directory listed in the struct passwd
entry, and thus not necessarily the one actually used)
src/core/exec-invoke.c