From: Lennart Poettering Date: Tue, 4 Apr 2023 11:41:00 +0000 (+0200) Subject: execute: add one more assert() X-Git-Tag: v254-rc1~812 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e43911a78e6a3758fc3c1d8eb1069a8ea77a44ba;p=thirdparty%2Fsystemd.git execute: add one more assert() --- 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;