Skip to content

Commit 60c363d

Browse files
authored
Merge pull request containers#1992 from eriksjolund/linux-do-not-leak-error
linux: do not leak error
2 parents e6dc6ab + 3e31338 commit 60c363d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcrun/linux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1706,7 +1706,7 @@ libcrun_create_dev (libcrun_container_t *container, int devfd, int srcfd,
17061706

17071707
fd = safe_openat (dirfd, rootfs, basename, O_PATH | O_CLOEXEC, 0, err);
17081708
if (UNLIKELY (fd < 0))
1709-
return crun_make_error (err, errno, "openat `%s`", device->path);
1709+
return crun_error_wrap (err, "openat `%s`", device->path);
17101710

17111711
get_proc_self_fd_path (fd_buffer, fd);
17121712

0 commit comments

Comments
 (0)