mirror of
https://github.com/containers/fuse-overlayfs.git
synced 2025-09-12 08:49:34 -04:00
Merge pull request #30 from giuseppe/fix-copyup-file-not-accessible
copyup: fix error if lower file cannot be opened
This commit is contained in:
commit
f48e1eff7a
4
main.c
4
main.c
@ -1857,11 +1857,11 @@ copyup (struct ovl_data *lo, struct ovl_node *node)
|
|||||||
goto success;
|
goto success;
|
||||||
}
|
}
|
||||||
|
|
||||||
sfd = TEMP_FAILURE_RETRY (openat (node_dirfd (node), node->path, O_RDONLY|O_NONBLOCK));
|
ret = sfd = TEMP_FAILURE_RETRY (openat (node_dirfd (node), node->path, O_RDONLY|O_NONBLOCK));
|
||||||
if (sfd < 0)
|
if (sfd < 0)
|
||||||
goto exit;
|
goto exit;
|
||||||
|
|
||||||
dfd = TEMP_FAILURE_RETRY (openat (lo->workdir_fd, wd_tmp_file_name, O_CREAT|O_WRONLY, st.st_mode));
|
ret = dfd = TEMP_FAILURE_RETRY (openat (lo->workdir_fd, wd_tmp_file_name, O_CREAT|O_WRONLY, st.st_mode));
|
||||||
if (dfd < 0)
|
if (dfd < 0)
|
||||||
goto exit;
|
goto exit;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user