]> err.no Git - systemd/commitdiff
pam: make sure we pass a valid tty field to logind
authorLennart Poettering <lennart@poettering.net>
Mon, 27 Jun 2011 17:49:43 +0000 (19:49 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 27 Jun 2011 17:49:43 +0000 (19:49 +0200)
src/pam-module.c

index 1658348e28ec922e5568204d07be9c838bbc46fd..ad8ca91d03fe412c2b596b86d58c6ff8239f3c01 100644 (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" :