From: Yu Watanabe Date: Wed, 16 Mar 2022 18:42:41 +0000 (+0900) Subject: core: ExecContext::restrict_filesystems is set of string X-Git-Tag: v251-rc1~131 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8fe84dc8de60ae8995e53e4d47b44c61626c0526;p=thirdparty%2Fsystemd.git core: ExecContext::restrict_filesystems is set of string --- diff --git a/src/core/execute.c b/src/core/execute.c index 94cd198b4dd..ba57bbc2791 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -6080,9 +6080,11 @@ void exec_context_dump(const ExecContext *c, FILE* f, const char *prefix) { } #if HAVE_LIBBPF - if (exec_context_restrict_filesystems_set(c)) - SET_FOREACH(e, c->restrict_filesystems) - fprintf(f, "%sRestrictFileSystems: %s\n", prefix, *e); + if (exec_context_restrict_filesystems_set(c)) { + char *fs; + SET_FOREACH(fs, c->restrict_filesystems) + fprintf(f, "%sRestrictFileSystems: %s\n", prefix, fs); + } #endif if (c->network_namespace_path)