mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-28 06:35:34 +07:00
pam: make sure we pass a valid tty field to logind
This commit is contained in:
parent
4ecda405d1
commit
cd58752a15
@ -389,7 +389,7 @@ _public_ PAM_EXTERN int pam_sm_open_session(
|
|||||||
|
|
||||||
if (isempty(display))
|
if (isempty(display))
|
||||||
display = tty;
|
display = tty;
|
||||||
tty = NULL;
|
tty = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
type = !isempty(display) ? "x11" :
|
type = !isempty(display) ? "x11" :
|
||||||
|
Loading…
Reference in New Issue
Block a user