From: Lennart Poettering Date: Mon, 27 Jun 2011 17:49:43 +0000 (+0200) Subject: pam: make sure we pass a valid tty field to logind X-Git-Tag: v30~142 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=cd58752a158ccab3db77d355410b31b457df4cfc pam: make sure we pass a valid tty field to logind --- diff --git a/src/pam-module.c b/src/pam-module.c index 1658348e2..ad8ca91d0 100644 --- a/src/pam-module.c +++ b/src/pam-module.c @@ -389,7 +389,7 @@ _public_ PAM_EXTERN int pam_sm_open_session( if (isempty(display)) display = tty; - tty = NULL; + tty = ""; } type = !isempty(display) ? "x11" :