pam: make sure we pass a valid tty field to logind

This commit is contained in:
Lennart Poettering 2011-06-27 19:49:43 +02:00
parent 4ecda405d1
commit cd58752a15

View File

@ -389,7 +389,7 @@ _public_ PAM_EXTERN int pam_sm_open_session(
if (isempty(display))
display = tty;
tty = NULL;
tty = "";
}
type = !isempty(display) ? "x11" :