Package: qfits / 6.2.0-8

01-open-o_creat.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
--- a/src/qfits_memory.c
+++ b/src/qfits_memory.c
@@ -308,7 +308,7 @@
         /* Create swap file with rights: rw-rw-rw- */
         swapfileid = ++ qfits_memory_table.file_reg ;
         fname = qfits_memory_tmpfilename(swapfileid);
-        swapfd = open(fname, O_RDWR | O_CREAT);
+        swapfd = open(fname, O_RDWR | O_CREAT, 0666);
         if (swapfd==-1) {
             fprintf(stderr, "qfits_mem: cannot create swap file\n");
             exit(-1);