summaryrefslogtreecommitdiff
path: root/app-emulation/gxemul/files/gxemul-0.6.0-fix-mymkstemp.patch
blob: c9e21bcc4b3339db45a91ac3750b23b3273d0a65 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/src/old_main/misc.cc	2012-11-03 08:47:34.309732354 +0000
+++ b/src/old_main/misc.cc	2012-11-03 08:47:02.096573614 +0000
@@ -122,7 +122,7 @@
 		p++;
 	}
 
-	h = open(templ, O_RDWR, 0600);
+	h = open(templ, O_CREAT | O_RDWR, 0600);
 	return h;
 }