[gdm/rhel-7.9: 11/51] manager: make get_login_window_session_id fail if no login screen




commit a6a7f54a1a3f614193e0e39ff743b6b602acda23
Author: Ray Strode <rstrode redhat com>
Date:   Tue Jul 17 15:40:25 2018 -0400

    manager: make get_login_window_session_id fail if no login screen
    
    Right now we oddly succeed from get_login_window_session_id
    if we can't find a login window.
    
    None of the caller expect that, so fail instead.

 daemon/gdm-manager.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/daemon/gdm-manager.c b/daemon/gdm-manager.c
index afc89c19f..34b54651c 100644
--- a/daemon/gdm-manager.c
+++ b/daemon/gdm-manager.c
@@ -1337,7 +1337,7 @@ get_login_window_session_id (const char  *seat_id,
 
         if (sessions == NULL || sessions[0] == NULL) {
                 *session_id = NULL;
-                ret = TRUE;
+                ret = FALSE;
                 goto out;
         }
 
@@ -1398,7 +1398,7 @@ get_login_window_session_id (const char  *seat_id,
         }
 
         *session_id = NULL;
-        ret = TRUE;
+        ret = FALSE;
 
 out:
         if (sessions) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]