Commit 7c475b29 authored by Fabio Erculiani's avatar Fabio Erculiani Committed by Ray Strode
Browse files

display: fix get_timed_login_details when systemd is enabled but not running

It's possible to build with systemd support, but not boot with systemd.
In that case get_timed_login_details erroneously assumes the seat format
will be systemd compatible (it checks if the seat is seat0).

This commit guards the seat0 check with a sd_booted() > 0 check.
parent e3929e0d
......@@ -33,6 +33,10 @@
#include <glib/gi18n.h>
#include <glib-object.h>
#include <systemd/sd-daemon.h>
#include "gdm-display.h"
#include "gdm-display-glue.h"
#include "gdm-display-access-file.h"
......@@ -361,8 +365,10 @@ gdm_display_real_get_timed_login_details (GdmDisplay *display,
* can support auto/timed login on auxilliary seats in the
* systemd path.
if (g_strcmp0 (display->priv->seat_id, "seat0") != 0) {
goto out;
if (sd_booted() > 0) {
if (g_strcmp0 (display->priv->seat_id, "seat0") != 0) {
goto out;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment