pam: make sure we pass a valid tty field to logind
This commit is contained in:
+1
-1
@@ -389,7 +389,7 @@ _public_ PAM_EXTERN int pam_sm_open_session(
|
||||
|
||||
if (isempty(display))
|
||||
display = tty;
|
||||
tty = NULL;
|
||||
tty = "";
|
||||
}
|
||||
|
||||
type = !isempty(display) ? "x11" :
|
||||
|
||||
Reference in New Issue
Block a user