Skip to content
Snippets Groups Projects
Commit c92adab4 authored by Colin Walters's avatar Colin Walters
Browse files

fdio: Add missing mode argument

Spotted by fortify-source.
parent 175502e5
No related branches found
No related tags found
No related merge requests found
...@@ -509,7 +509,7 @@ glnx_file_copy_at (int src_dfd, ...@@ -509,7 +509,7 @@ glnx_file_copy_at (int src_dfd,
else else
dest_open_flags |= O_TRUNC; dest_open_flags |= O_TRUNC;
dest_fd = TEMP_FAILURE_RETRY (openat (dest_dfd, dest_subpath, dest_open_flags)); dest_fd = TEMP_FAILURE_RETRY (openat (dest_dfd, dest_subpath, dest_open_flags, src_stbuf->st_mode));
if (dest_fd == -1) if (dest_fd == -1)
{ {
glnx_set_error_from_errno (error); glnx_set_error_from_errno (error);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment