From b106e2500810d8c718e8b8555ff86b734bd2aa85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Sj=C3=B6lund?= Date: Fri, 5 Dec 2025 09:12:16 +0100 Subject: [PATCH] container: fix error release 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 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/libcrun/container.c b/src/libcrun/container.c index 53bea609fe..37ab264564 100644 --- a/src/libcrun/container.c +++ b/src/libcrun/container.c @@ -1233,13 +1233,13 @@ setup_executable_path (struct container_entrypoint_s *entrypoint_args, runtime_s { if (entrypoint_args->custom_handler == NULL && crun_error_get_errno (err) == ENOENT) return ret; - } - /* If it fails for any other reason, ignore the failure. We'll try again the lookup - once the process switched to the use that runs in the container. This might be necessary - when opening a file that is on a network file system like NFS, where CAP_DAC_OVERRIDE - is not honored. */ - crun_error_release (err); + /* If it fails for any other reason, ignore the failure. We'll try again the lookup + once the process switched to the use that runs in the container. This might be necessary + when opening a file that is on a network file system like NFS, where CAP_DAC_OVERRIDE + is not honored. */ + crun_error_release (err); + } } return 0;