1 |
rbu 08/04/01 17:54:24 |
2 |
|
3 |
Added: am-utils-6.1.5-uts_release.patch |
4 |
am-utils-6.1.5-CVE-2008-1078.patch |
5 |
Log: |
6 |
Non-maintainer-commit: Version bump (bug #181683), build properly on Kernels |
7 |
>=2.6.18 (bug #190842) and fix insecure temporary file creation in expn (bug |
8 |
#210158). |
9 |
(Portage version: 2.1.4.4) |
10 |
|
11 |
Revision Changes Path |
12 |
1.1 net-fs/am-utils/files/am-utils-6.1.5-uts_release.patch |
13 |
|
14 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/am-utils/files/am-utils-6.1.5-uts_release.patch?rev=1.1&view=markup |
15 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/am-utils/files/am-utils-6.1.5-uts_release.patch?rev=1.1&content-type=text/plain |
16 |
|
17 |
Index: am-utils-6.1.5-uts_release.patch |
18 |
=================================================================== |
19 |
Index: am-utils-6.1.5/acinclude.m4 |
20 |
=================================================================== |
21 |
--- am-utils-6.1.5.orig/acinclude.m4 |
22 |
+++ am-utils-6.1.5/acinclude.m4 |
23 |
@@ -10161,7 +10161,14 @@ AC_DEFUN([AMU_LINUX_HEADERS], |
24 |
], |
25 |
[ |
26 |
if (argc > 1) |
27 |
+#ifdef UTS_RELEASE |
28 |
printf("%s", UTS_RELEASE); |
29 |
+#else |
30 |
+# define AMU_MA(a) ((a) >> 16) |
31 |
+# define AMU_MI(a) (((a) & 0xffff) >> 8) |
32 |
+# define AMU_PL(a) ((a) & 0xff) |
33 |
+ printf("%d.%d.%d", AMU_MA(LINUX_VERSION_CODE), AMU_MI(LINUX_VERSION_CODE), AMU_PL(LINUX_VERSION_CODE)); |
34 |
+#endif |
35 |
], |
36 |
[ host_header_version=$value ], |
37 |
[ echo |
38 |
|
39 |
|
40 |
|
41 |
1.1 net-fs/am-utils/files/am-utils-6.1.5-CVE-2008-1078.patch |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/am-utils/files/am-utils-6.1.5-CVE-2008-1078.patch?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/am-utils/files/am-utils-6.1.5-CVE-2008-1078.patch?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: am-utils-6.1.5-CVE-2008-1078.patch |
47 |
=================================================================== |
48 |
Index: am-utils-6.1.5/scripts/expn.in |
49 |
=================================================================== |
50 |
--- am-utils-6.1.5.orig/scripts/expn.in |
51 |
+++ am-utils-6.1.5/scripts/expn.in |
52 |
@@ -9,6 +9,7 @@ |
53 |
# hardcoded constants, should work fine for BSD-based systems |
54 |
#require 'sys/socket.ph'; # perl 4 |
55 |
use Socket; # perl 5 |
56 |
+use Fcntl; |
57 |
$AF_INET = &AF_INET; |
58 |
$SOCK_STREAM = &SOCK_STREAM; |
59 |
|
60 |
@@ -1009,7 +1010,7 @@ sub mxlookup |
61 |
} |
62 |
|
63 |
$0 = "$av0 - nslookup of $server"; |
64 |
- open(T,">/tmp/expn$$") || die "open > /tmp/expn$$: $!\n"; |
65 |
+ sysopen(T,"/tmp/expn$$", O_EXCL | O_CREAT) || die "open > /tmp/expn$$: $!\n"; |
66 |
print T "set querytype=MX\n"; |
67 |
print T "$server\n"; |
68 |
close(T); |
69 |
|
70 |
|
71 |
|
72 |
-- |
73 |
gentoo-commits@l.g.o mailing list |