diff options
| author | Steve Price <steve@FreeBSD.org> | 2000-05-29 18:17:39 +0000 |
|---|---|---|
| committer | Steve Price <steve@FreeBSD.org> | 2000-05-29 18:17:39 +0000 |
| commit | 5373fd28de9cdf3c9c80dfcea841d0c3c9d2bdb5 (patch) | |
| tree | 99a43c72d0c1590652517d529a4b9f9e6ca425c4 /mail/majordomo/files/patch-bi | |
| parent | 2d610cd8b416a6a6c1a8e2fa2e745b3bd4aa7ad9 (diff) | |
Update to version 1.94.5.
PR: 17820
Submitted by: Doug Barton <DougB@gorean.org> and
Klaus Brunner <klaus@winf.htu.at>
Diffstat (limited to 'mail/majordomo/files/patch-bi')
| -rw-r--r-- | mail/majordomo/files/patch-bi | 36 |
1 files changed, 32 insertions, 4 deletions
diff --git a/mail/majordomo/files/patch-bi b/mail/majordomo/files/patch-bi index c035bcae5a23..1c97b28e878c 100644 --- a/mail/majordomo/files/patch-bi +++ b/mail/majordomo/files/patch-bi @@ -1,6 +1,34 @@ ---- resend.orig Wed Aug 27 23:59:24 1997 -+++ resend Wed Sep 10 00:57:38 1997 -@@ -111,7 +111,7 @@ +--- resend.Dist Fri Jan 7 07:32:39 2000 ++++ resend Sun Apr 16 23:15:50 2000 +@@ -84,11 +84,23 @@ + # Despite not having a place to send the remains of the body, + # it would be nice to send a message to root or postmaster, at least... + # +-if (! -r $cf) { +- die("$cf not readable; stopped"); +-} + +-require "$cf"; ++if (not sysopen CONFIG,$cf,O_RDONLY) ++{ ++ die sprintf qq|Unable to sysopen config file "$cf"%s.\n|,$! ? ": $!" : ''; ++} ++elsif ((stat CONFIG)[4] != $>) ++{ ++ die qq|Config file "$cf" not owned by effective UID.\n|; ++} ++elsif (eval(join '',<CONFIG>),$@) ++{ ++ die qq|Unable to eval "$cf": $@.\n|; ++} ++else ++{ ++ close CONFIG; ++} + + chdir($homedir) || die("Can't chdir(\"$homedir\"): $!"); + +@@ -111,7 +123,7 @@ # XXX It is possible that owner-$opt_l won't be the right address, but we # have little choice. Sending the bounces to $whoami_owner is an option, # but might not clearly indicate the list name. @@ -9,7 +37,7 @@ $bounce_mailer = $bounce_mailer || "$sendmail_command -f\$sender -t"; &set_mail_from("owner-$opt_l"); &set_mail_sender("owner-$opt_l"); -@@ -924,7 +924,7 @@ +@@ -936,7 +948,7 @@ else { # Painful, but we have to provide some kind of backwards # compatibility and this is what 1.93 used |
