summaryrefslogtreecommitdiff
path: root/mail/maildrop/patches
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2007-08-27 22:33:19 +0000
committerjlam <jlam@pkgsrc.org>2007-08-27 22:33:19 +0000
commit77a347132a637fa36406b36d7cec6799bdd1fe26 (patch)
tree46238afa381bded81abc8d9f2935c5991b9b2f30 /mail/maildrop/patches
parent3544f37c8d6b33690f99eacdb9ae01fe742f77a6 (diff)
downloadpkgsrc-77a347132a637fa36406b36d7cec6799bdd1fe26.tar.gz
Fix breakage when maildrop is invoked by the user in "delivery mode"
without an explicity "-d" option. Maildrop was breaking because it was not properly finding the user's home directory (in order to locate ~/.maildroprc). This breakage occurred sometime shortly before maildrop was updated to 2.0.2 when I tried to make a single maildrop package usable by both courier-mta and other mailers. This fixes PR pkg/34275 by Greg Kerr. Bump the PKGREVISION to 1.
Diffstat (limited to 'mail/maildrop/patches')
-rw-r--r--mail/maildrop/patches/patch-ac11
1 files changed, 10 insertions, 1 deletions
diff --git a/mail/maildrop/patches/patch-ac b/mail/maildrop/patches/patch-ac
index a91056e7f8d..caddf9aafbd 100644
--- a/mail/maildrop/patches/patch-ac
+++ b/mail/maildrop/patches/patch-ac
@@ -1,7 +1,16 @@
-$NetBSD: patch-ac,v 1.2 2007/08/10 17:57:09 jlam Exp $
+$NetBSD: patch-ac,v 1.3 2007/08/27 22:33:19 jlam Exp $
--- maildrop/main.C.orig 2006-10-01 20:03:37.000000000 -0400
+++ maildrop/main.C
+@@ -576,7 +576,7 @@ uid_t my_u=getuid();
+ if (!found)
+ {
+ #if HAVE_COURIER
+- if (!deliverymode)
++ if (!deliverymode || !getenv("COURIER_MTA"))
+ #endif
+ {
+ my_pw=getpwuid(my_u);
@@ -628,6 +628,14 @@ Buffer value;
{
const char *p;