mirror of
https://github.com/systemd/systemd.git
synced 2025-03-21 02:50:18 +03:00
exec-invoke: Fix invalid use of error variable
Follow up for 406f1775017a5631bc91a1f53ac5e50f4fbfac0c (cherry picked from commit f215835cb88fd18fca68561b8ff1149632939e94)
This commit is contained in:
parent
014b7f987f
commit
6a4934ed59
@ -5048,7 +5048,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
|
||||
|
Loading…
x
Reference in New Issue
Block a user