Skip to content

Commit 506e3d0

Browse files
authored
Merge pull request #1918 from eriksjolund/fix-error-release
container: fix error release
2 parents 2109133 + b106e25 commit 506e3d0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/libcrun/container.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,13 +1233,13 @@ setup_executable_path (struct container_entrypoint_s *entrypoint_args, runtime_s
12331233
{
12341234
if (entrypoint_args->custom_handler == NULL && crun_error_get_errno (err) == ENOENT)
12351235
return ret;
1236-
}
12371236

1238-
/* If it fails for any other reason, ignore the failure. We'll try again the lookup
1239-
once the process switched to the use that runs in the container. This might be necessary
1240-
when opening a file that is on a network file system like NFS, where CAP_DAC_OVERRIDE
1241-
is not honored. */
1242-
crun_error_release (err);
1237+
/* If it fails for any other reason, ignore the failure. We'll try again the lookup
1238+
once the process switched to the use that runs in the container. This might be necessary
1239+
when opening a file that is on a network file system like NFS, where CAP_DAC_OVERRIDE
1240+
is not honored. */
1241+
crun_error_release (err);
1242+
}
12431243
}
12441244

12451245
return 0;

0 commit comments

Comments
 (0)