diff options
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.patch | 20 |
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); |