1 |
patrick 09/03/02 00:27:55 |
2 |
|
3 |
Added: yap-5.1.3-fortify_sources-ubuntu.patch |
4 |
Log: |
5 |
Fixing fcc 4.3.3 / fortify_sources error. Patch from Ubuntu. Closes #260180 |
6 |
(Portage version: 2.2_rc23/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 dev-lang/yap/files/yap-5.1.3-fortify_sources-ubuntu.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/yap/files/yap-5.1.3-fortify_sources-ubuntu.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/yap/files/yap-5.1.3-fortify_sources-ubuntu.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: yap-5.1.3-fortify_sources-ubuntu.patch |
15 |
=================================================================== |
16 |
#! /bin/sh /usr/share/dpatch/dpatch-run |
17 |
## 04_gcc_4.3.dpatch by <dktrkranz@××××××.com> |
18 |
## DP: Fix FTBFS with Ubuntu toolchain |
19 |
|
20 |
@DPATCH@ |
21 |
diff -urNad yap-5.1.1~/C/alloc.c yap-5.1.1/C/alloc.c |
22 |
--- yap-5.1.1~/C/alloc.c 2006-03-24 18:15:18.000000000 +0100 |
23 |
+++ yap-5.1.1/C/alloc.c 2008-07-09 22:55:34.000000000 +0200 |
24 |
@@ -796,7 +796,7 @@ |
25 |
itos(getpid(), &file[12]); |
26 |
#endif /* HAVE_TMPNAM */ |
27 |
#endif /* HAVE_MKSTEMP */ |
28 |
- fd = open(file, O_CREAT|O_RDWR); |
29 |
+ fd = open(file, O_CREAT|O_RDWR, 0644); |
30 |
if (fd < 0) { |
31 |
Yap_Error(FATAL_ERROR, TermNil, "mmap could not open %s", file); |
32 |
return NULL; |
33 |
@@ -909,7 +909,7 @@ |
34 |
itos(getpid(), &file[12]); |
35 |
#endif /* HAVE_TMPNAM */ |
36 |
#endif /* HAVE_MKSTEMP */ |
37 |
- fd = open(file, O_CREAT|O_RDWR); |
38 |
+ fd = open(file, O_CREAT|O_RDWR, 0644); |
39 |
if (fd < 0) { |
40 |
Yap_ErrorMessage = Yap_ErrorSay; |
41 |
snprintf4(Yap_ErrorMessage, MAX_ERROR_MSG_SIZE, |