From: Daan De Meyer Date: Wed, 26 Feb 2025 21:34:33 +0000 (+0100) Subject: exec-invoke: Fix invalid use of error variable X-Git-Tag: v258-rc1~1234^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F36537%2Fhead;p=thirdparty%2Fsystemd.git exec-invoke: Fix invalid use of error variable Follow up for 406f1775017a5631bc91a1f53ac5e50f4fbfac0c --- diff --git a/src/core/exec-invoke.c b/src/core/exec-invoke.c index 6929dc1c154..10f425139bf 100644 --- a/src/core/exec-invoke.c +++ b/src/core/exec-invoke.c @@ -5193,7 +5193,7 @@ int exec_invoke( if (needs_sandboxing && exec_needs_pid_namespace(context)) { if (params->pidref_transport_fd < 0) { *exit_status = EXIT_NAMESPACE; - return log_exec_error_errno(context, params, r, "PidRef socket is not set up: %m"); + return log_exec_error_errno(context, params, SYNTHETIC_ERRNO(ENOTCONN), "PidRef socket is not set up: %m"); } /* If we had CAP_SYS_ADMIN prior to joining the user namespace, then we are privileged and don't need