]> git.ipfire.org Git - thirdparty/systemd.git/commit
exec-invoke: Always go via stdin fd in setup_pam() to get tty 36666/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 3 Apr 2025 14:25:15 +0000 (16:25 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 4 Apr 2025 15:13:16 +0000 (17:13 +0200)
commit2b0087e5b171e2292c07bacef8908bf4d5339a4b
treec0398e16f7b60f3356c2f4618ee444702e9589ce
parent6f1d594d637fe47480aa001ee62d20306af8f38e
exec-invoke: Always go via stdin fd in setup_pam() to get tty

We might have resolved the tty to something else if it was set to
/dev/console, so let's always go via stdin in setup_pam(). This also
means we won't set the pam tty if only stdout or stderr are connected
to a tty, which seems like a sensible thing to do.
src/core/exec-invoke.c