From: | "Sebastien Fabbro (bicatali)" <bicatali@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sci-libs/qfits/files: qfits-6.2.0-open.patch |
Date: | Sun, 01 Mar 2009 19:14:15 |
Message-Id: | E1Ldr6w-0007z0-Vr@stork.gentoo.org |
1 | bicatali 09/03/01 19:14:02 |
2 | |
3 | Added: qfits-6.2.0-open.patch |
4 | Log: |
5 | Added fix for _FORTIFY_SOURCE=2, thank loki_val to point to a patch from Fedora folks |
6 | (Portage version: 2.2_rc23/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 sci-libs/qfits/files/qfits-6.2.0-open.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/qfits/files/qfits-6.2.0-open.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/qfits/files/qfits-6.2.0-open.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: qfits-6.2.0-open.patch |
15 | =================================================================== |
16 | diff -ur qfits-6.2.0/src/qfits_memory.c qfits-6.2.0.new/src/qfits_memory.c |
17 | --- qfits-6.2.0/src/qfits_memory.c 2006-08-24 17:01:56.000000000 +0200 |
18 | +++ qfits-6.2.0.new/src/qfits_memory.c 2007-09-21 13:43:19.000000000 +0200 |
19 | @@ -308,7 +308,7 @@ |
20 | /* Create swap file with rights: rw-rw-rw- */ |
21 | swapfileid = ++ qfits_memory_table.file_reg ; |
22 | fname = qfits_memory_tmpfilename(swapfileid); |
23 | - swapfd = open(fname, O_RDWR | O_CREAT); |
24 | + swapfd = open(fname, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); |
25 | if (swapfd==-1) { |
26 | fprintf(stderr, "qfits_mem: cannot create swap file\n"); |
27 | exit(-1); |