summaryrefslogtreecommitdiff
path: root/mail/courier-imap/patches/patch-af
blob: f12a0e4a1fc0518596fe66a13897d4ca88e6cf5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$NetBSD: patch-af,v 1.6 2005/02/18 22:12:46 jlam Exp $

--- imapd.rc.in.orig	2004-11-24 23:57:04.000000000 -0500
+++ imapd.rc.in
@@ -9,6 +9,7 @@ prefix=@prefix@
 exec_prefix=@exec_prefix@
 bindir=@bindir@
 libexecdir=@libexecdir@
+sbindir=@sbindir@
 
 if test ! -f @sysconfdir@/imapd
 then
@@ -35,11 +36,12 @@ start)
 
 	umask $IMAP_UMASK
 	@ULIMIT@ $IMAP_ULIMITD
-	@SETENV@ - @SHELL@ -c " set -a ;
+	@SETENV@ -i @SHELL@ -c " set -a ;
 			prefix=@prefix@ ;
 			exec_prefix=@exec_prefix@ ;
 			bindir=@bindir@ ;
 			libexecdir=@libexecdir@ ;
+			sbindir=@sbindir@ ;
 				. @sysconfdir@/imapd ; \
 				. @sysconfdir@/imapd-ssl ; \
 		IMAP_STARTTLS=$IMAPDSTARTTLS ; export IMAP_STARTTLS ; \