mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
committed by
Lennart Poettering
parent
6c80ab85f5
commit
f875a8026e
@@ -1226,6 +1226,11 @@ static int exec_context_get_tty_for_pam(const ExecContext *context, char **ret)
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (!IN_SET(context->std_input, EXEC_INPUT_TTY, EXEC_INPUT_TTY_FAIL, EXEC_INPUT_TTY_FORCE)) {
|
||||
*ret = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Next, let's try to use the TTY specified in TTYPath=. */
|
||||
const char *t = exec_context_tty_path(context);
|
||||
if (!t) {
|
||||
|
||||
Reference in New Issue
Block a user