mirror of
https://github.com/flatpak/flatpak.git
synced 2026-03-28 11:54:01 -04:00
fdio: Add missing mode argument
Spotted by fortify-source.
This commit is contained in:
@@ -509,7 +509,7 @@ glnx_file_copy_at (int src_dfd,
|
||||
else
|
||||
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)
|
||||
{
|
||||
glnx_set_error_from_errno (error);
|
||||
|
||||
Reference in New Issue
Block a user