From cd58752a158ccab3db77d355410b31b457df4cfc Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 27 Jun 2011 19:49:43 +0200 Subject: [PATCH] pam: make sure we pass a valid tty field to logind --- src/pam-module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" : -- 2.30.2