From c92adab47af5d3e75f4e4e73c50e02637f226ba8 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 9 Mar 2015 21:20:10 -0400 Subject: [PATCH] fdio: Add missing mode argument Spotted by fortify-source. --- glnx-fdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glnx-fdio.c b/glnx-fdio.c index e0a240d5..77be6e11 100644 --- a/glnx-fdio.c +++ b/glnx-fdio.c @@ -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);