daandemeyer / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
803fb7
From 7f681673fa2af8f1898447ee336763f2eeb00d57 Mon Sep 17 00:00:00 2001
803fb7
From: Lennart Poettering <lennart@poettering.net>
803fb7
Date: Fri, 13 Nov 2015 18:47:02 +0100
803fb7
Subject: [PATCH] logind: don't assert if the slice is missing
803fb7
803fb7
After all, we don't actually really need the slice to work, it's just
803fb7
nice to have it.
803fb7
803fb7
Cherry-picked from: 38599489e49e840291516488a3ef1b4a56198c58
803fb7
Resolves: #1371437
803fb7
---
803fb7
 src/login/logind-session.c | 1 -
803fb7
 1 file changed, 1 deletion(-)
803fb7
803fb7
diff --git a/src/login/logind-session.c b/src/login/logind-session.c
803fb7
index 59f5a7ad5..746e50aa5 100644
803fb7
--- a/src/login/logind-session.c
803fb7
+++ b/src/login/logind-session.c
803fb7
@@ -507,7 +507,6 @@ static int session_start_scope(Session *s) {
803fb7
 
803fb7
         assert(s);
803fb7
         assert(s->user);
803fb7
-        assert(s->user->slice);
803fb7
 
803fb7
         if (!s->scope) {
803fb7
                 _cleanup_bus_error_free_ sd_bus_error error = SD_BUS_ERROR_NULL;