summaryrefslogtreecommitdiff
path: root/app-benchmarks/contest/files/contest-fortify_sources.patch
diff options
context:
space:
mode:
Diffstat (limited to 'app-benchmarks/contest/files/contest-fortify_sources.patch')
-rw-r--r--app-benchmarks/contest/files/contest-fortify_sources.patch11
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 00000000000..cb2e6d6dd63
--- /dev/null
+++ b/app-benchmarks/contest/files/contest-fortify_sources.patch
@@ -0,0 +1,11 @@
+--- bmark.c 2009-02-27 23:13:44.000000000 +0000
++++ 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){