summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Buchholz <rbu@gentoo.org>2008-04-01 17:54:23 +0000
committerRobert Buchholz <rbu@gentoo.org>2008-04-01 17:54:23 +0000
commit14c8a30473c0bb4d8ae8d0532359fbda4379c97e (patch)
tree3da9c5be8c50f5732073da9ac7c9bec1bce50e3d /net-fs/am-utils/files
parenttrunk build against qt4 (diff)
downloadgentoo-2-14c8a30473c0bb4d8ae8d0532359fbda4379c97e.tar.gz
gentoo-2-14c8a30473c0bb4d8ae8d0532359fbda4379c97e.tar.bz2
gentoo-2-14c8a30473c0bb4d8ae8d0532359fbda4379c97e.zip
Non-maintainer-commit: Version bump (bug #181683), build properly on Kernels
>=2.6.18 (bug #190842) and fix insecure temporary file creation in expn (bug #210158). (Portage version: 2.1.4.4)
Diffstat (limited to 'net-fs/am-utils/files')
-rw-r--r--net-fs/am-utils/files/am-utils-6.1.5-CVE-2008-1078.patch21
-rw-r--r--net-fs/am-utils/files/am-utils-6.1.5-uts_release.patch19
2 files changed, 40 insertions, 0 deletions
diff --git a/net-fs/am-utils/files/am-utils-6.1.5-CVE-2008-1078.patch b/net-fs/am-utils/files/am-utils-6.1.5-CVE-2008-1078.patch
new file mode 100644
index 000000000000..f0965b4a855a
--- /dev/null
+++ b/net-fs/am-utils/files/am-utils-6.1.5-CVE-2008-1078.patch
@@ -0,0 +1,21 @@
+Index: am-utils-6.1.5/scripts/expn.in
+===================================================================
+--- am-utils-6.1.5.orig/scripts/expn.in
++++ am-utils-6.1.5/scripts/expn.in
+@@ -9,6 +9,7 @@
+ # hardcoded constants, should work fine for BSD-based systems
+ #require 'sys/socket.ph'; # perl 4
+ use Socket; # perl 5
++use Fcntl;
+ $AF_INET = &AF_INET;
+ $SOCK_STREAM = &SOCK_STREAM;
+
+@@ -1009,7 +1010,7 @@ sub mxlookup
+ }
+
+ $0 = "$av0 - nslookup of $server";
+- open(T,">/tmp/expn$$") || die "open > /tmp/expn$$: $!\n";
++ sysopen(T,"/tmp/expn$$", O_EXCL | O_CREAT) || die "open > /tmp/expn$$: $!\n";
+ print T "set querytype=MX\n";
+ print T "$server\n";
+ close(T);
diff --git a/net-fs/am-utils/files/am-utils-6.1.5-uts_release.patch b/net-fs/am-utils/files/am-utils-6.1.5-uts_release.patch
new file mode 100644
index 000000000000..64b3342e0666
--- /dev/null
+++ b/net-fs/am-utils/files/am-utils-6.1.5-uts_release.patch
@@ -0,0 +1,19 @@
+Index: am-utils-6.1.5/acinclude.m4
+===================================================================
+--- am-utils-6.1.5.orig/acinclude.m4
++++ am-utils-6.1.5/acinclude.m4
+@@ -10161,7 +10161,14 @@ AC_DEFUN([AMU_LINUX_HEADERS],
+ ],
+ [
+ if (argc > 1)
++#ifdef UTS_RELEASE
+ printf("%s", UTS_RELEASE);
++#else
++# define AMU_MA(a) ((a) >> 16)
++# define AMU_MI(a) (((a) & 0xffff) >> 8)
++# define AMU_PL(a) ((a) & 0xff)
++ printf("%d.%d.%d", AMU_MA(LINUX_VERSION_CODE), AMU_MI(LINUX_VERSION_CODE), AMU_PL(LINUX_VERSION_CODE));
++#endif
+ ],
+ [ host_header_version=$value ],
+ [ echo