dcavalca / rpms / systemd

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