summaryrefslogtreecommitdiff
path: root/extra/avfs/avfs-1.0.0-fix_open_missing_mode.patch
blob: 1e4a0a4d8c60a924487c6a77a0be89b6f2e49448 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/modules/urar.c	2007-05-14 20:21:23.000000000 +0200
+++ b/modules/urar.c	2009-02-09 13:48:56.780225932 +0100
@@ -587,7 +587,7 @@
     if(res < 0)
         return res;
 
-    fd = open(tmpfile, O_RDWR | O_CREAT | O_TRUNC);
+    fd = open(tmpfile, O_RDWR | O_CREAT | O_TRUNC, 0644);
     if(fd == -1) {
         res = -errno; 
         av_log(AVLOG_ERROR, "RAR: Could not open %s: %s", tmpfile,