From 0f367791e73b2189a46cc184fbe1b2b4dd1d2996 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Sj=C3=B6lund?= Date: Fri, 30 Jan 2026 08:46:32 +0100 Subject: [PATCH] container: do not use errno after successful calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Erik Sjölund --- src/libcrun/container.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcrun/container.c b/src/libcrun/container.c index 699188bc5f..f85d3f180e 100644 --- a/src/libcrun/container.c +++ b/src/libcrun/container.c @@ -2584,7 +2584,7 @@ setup_seccomp (libcrun_container_t *container, const char *seccomp_bpf_data, if (find_annotation (container, "run.oci.seccomp.plugins") != NULL && has_seccomp_receiver (container)) { - return crun_make_error (err, errno, "seccomp plugins and seccomp receivers cannot be declared at the same time"); + return crun_make_error (err, 0, "seccomp plugins and seccomp receivers cannot be declared at the same time"); } if (def->linux && (def->linux->seccomp || seccomp_bpf_data))