[gdm/wip/try-harder-to-get-a-login-screen: 2/5] manager: make get_login_window_session_id fail if no login screen
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm/wip/try-harder-to-get-a-login-screen: 2/5] manager: make get_login_window_session_id fail if no login screen
- Date: Thu, 2 Aug 2018 20:07:24 +0000 (UTC)
commit 235214328f23422a87da12b1d952bcbc2c174fcc
Author: Ray Strode <rstrode redhat com>
Date: Wed Aug 1 15:46:11 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 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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]