From e43911a78e6a3758fc3c1d8eb1069a8ea77a44ba Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 4 Apr 2023 13:41:00 +0200 Subject: [PATCH] execute: add one more assert() --- src/core/execute.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/execute.c b/src/core/execute.c index b1160cd4d61..aff07e7b744 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -2412,6 +2412,8 @@ static int setup_private_users(uid_t ouid, gid_t ogid, uid_t uid, gid_t gid) { } static bool exec_directory_is_private(const ExecContext *context, ExecDirectoryType type) { + assert(context); + if (!context->dynamic_user) return false; -- 2.47.3