diff options
author | Ray Strode <rstrode@redhat.com> | 2018-08-01 15:46:11 -0400 |
---|---|---|
committer | Ray Strode <halfline@gmail.com> | 2018-08-02 20:06:35 +0000 |
commit | 235214328f23422a87da12b1d952bcbc2c174fcc (patch) | |
tree | 0c4bb7c19e4cd7ea72604202fac3b029c47fc9eb | |
parent | 77c791afa4dc02ef7c6f3278dd20b23d69cee7fe (diff) | |
download | gdm-235214328f23422a87da12b1d952bcbc2c174fcc.tar.gz |
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.
-rw-r--r-- | daemon/gdm-manager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/gdm-manager.c b/daemon/gdm-manager.c index 1370bab4..2ec8d652 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; } @@ -1399,7 +1399,7 @@ get_login_window_session_id (const char *seat_id, } *session_id = NULL; - ret = TRUE; + ret = FALSE; out: if (sessions) { |