summaryrefslogtreecommitdiff
path: root/debian/patches/8.12/8.12.3/dsa-expn.patch
diff options
context:
space:
mode:
authorMartin Schulze <joey@infodrom.org>2004-09-13 09:07:18 +0200
committerAndreas Beckmann <debian@abeckmann.de>2012-10-01 19:58:43 +0200
commitae03fe5d926a63cab418207f760d62a947957123 (patch)
treeaa48cfe56ac7c47fb9b0abce4d4689033d3098d6 /debian/patches/8.12/8.12.3/dsa-expn.patch
parentdd994db23cb7f88732be927fad3a7039bd6301db (diff)
downloadsendmail-debian/8.12.3-7.1.tar.gz
Imported Debian patch 8.12.3-7.1debian/8.12.3-7.1
Diffstat (limited to 'debian/patches/8.12/8.12.3/dsa-expn.patch')
-rw-r--r--debian/patches/8.12/8.12.3/dsa-expn.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/patches/8.12/8.12.3/dsa-expn.patch b/debian/patches/8.12/8.12.3/dsa-expn.patch
new file mode 100644
index 0000000..c24bfaa
--- /dev/null
+++ b/debian/patches/8.12/8.12.3/dsa-expn.patch
@@ -0,0 +1,20 @@
+diff -u expn.old expn
+--- expn.old Sat Apr 5 00:07:36 2003
++++ ./sendmail-8.12.3/contrib/expn.pl Mon Apr 14 08:37:41 2003
+@@ -8,6 +8,7 @@
+
+ use 5.001;
+ use IO::Socket;
++use Fcntl;
+
+ # system requirements:
+ # must have 'nslookup' and 'hostname' programs.
+@@ -999,7 +1000,7 @@
+ }
+
+ $0 = "$av0 - nslookup of $server";
+- open(T,">/tmp/expn$$") || die "open > /tmp/expn$$: $!\n";
++ sysopen(T,"/tmp/expn$$",O_RDWR|O_CREAT|O_EXCL,0600) || die "open > /tmp/expn$$: $!\n";
+ print T "set querytype=MX\n";
+ print T "$server\n";
+ close(T);