|
From: Mark W. <ma...@so...> - 2019-05-24 19:54:56
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=033d013bebeb3471c0da47060deb9a5771e6c913 commit 033d013bebeb3471c0da47060deb9a5771e6c913 Author: Mark Wielaard <ma...@kl...> Date: Fri May 24 21:51:31 2019 +0200 Fix memcheck/tests/linux/sys-copy_file_range open call (mode). sys-copy_file_range.c calls open with O_CREAT flag and so must provide a mode argument. valgrind memcheck actually caught this ommission on some arches (fedora rawhide i686 specifically). This is a small additional fixup for https://bugs.kde.org/show_bug.cgi?id=407218 Diff: --- memcheck/tests/linux/sys-copy_file_range.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memcheck/tests/linux/sys-copy_file_range.c b/memcheck/tests/linux/sys-copy_file_range.c index 589399c..3022fa1 100644 --- a/memcheck/tests/linux/sys-copy_file_range.c +++ b/memcheck/tests/linux/sys-copy_file_range.c @@ -12,7 +12,7 @@ int main(int argc, char **argv) struct stat stat; loff_t len, ret; - fd_in = open("copy_file_range_source", O_CREAT | O_RDWR); + fd_in = open("copy_file_range_source", O_CREAT | O_RDWR, 0644); if (fd_in == -1) { perror("open copy_file_range_source"); exit(EXIT_FAILURE); |