diff options
Diffstat (limited to 'app-benchmarks/contest/files/contest-fortify_sources.patch')
-rw-r--r-- | app-benchmarks/contest/files/contest-fortify_sources.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app-benchmarks/contest/files/contest-fortify_sources.patch b/app-benchmarks/contest/files/contest-fortify_sources.patch new file mode 100644 index 000000000000..042065822612 --- /dev/null +++ b/app-benchmarks/contest/files/contest-fortify_sources.patch @@ -0,0 +1,11 @@ +--- contest-0.61/bmark.c 2009-02-27 23:13:44.000000000 +0000 ++++ contest-0.61/bmark.c 2009-02-27 23:12:44.000000000 +0000 +@@ -47,7 +47,7 @@ + } + /* child */ + +- if((tmpfd=open(TMP_FILE, O_RDWR|O_CREAT|O_TRUNC))==-1){ ++ if((tmpfd=open(TMP_FILE, O_RDWR|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR))==-1){ + printsys("Could not open temporary file\n"); + } + if(dup2(tmpfd, TMP_FD)==-1){ |