summaryrefslogtreecommitdiff
path: root/sci-libs/qfits/files/qfits-6.2.0-open.patch
blob: 951970da6dc4884bd394a4684d1c2e1c56faf0b3 (plain)
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, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);
         if (swapfd==-1) {
             fprintf(stderr, "qfits_mem: cannot create swap file\n");
             exit(-1);