From 941652e92030ec79c9be31d7237fdf9eee0953a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 27 Jan 2015 12:29:32 -0500 Subject: [PATCH] logind: fail user creation is slice creation fails If the slice wasn't set, logind would core dump later in the process: systemd-logind[2672]: Assertion 's->user->slice' failed at ../src/login/logind-session.c:531, function session_start_scope(). https://bugzilla.redhat.com/show_bug.cgi?id=1182781 --- src/login/logind-user.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/login/logind-user.c b/src/login/logind-user.c index 3aeac136e..639a4ef46 100644 --- a/src/login/logind-user.c +++ b/src/login/logind-user.c @@ -351,6 +351,7 @@ static int user_start_slice(User *u) { dbus_error_free(&error); free(slice); + return r; } else { u->slice = slice;