On Fri, 15 Jun 2012 08:33:22 -0400
Sam Varshavchik <[email protected]> wrote:

> I don't see how it could possibly work. With the change applied, the
> install command becomes:
> 
> /bin/install -c `test `id -u` != 0 || echo -o daemon -g daemon`

I see your point - my fault, I did it correct for Makefile.in, but
wrong for Makefile.am.

See attached patch - rediffed against 0.68.2, tested and this time
hopefully correct.


-- 
Hanno Böck              mail/jabber: [email protected]
GPG: BBB51E42           http://www.hboeck.de/
diff -Naur courier-0.68.2-orig/courier/module.esmtp/Makefile.am courier-0.68.2/courier/module.esmtp/Makefile.am
--- courier-0.68.2-orig/courier/module.esmtp/Makefile.am	2012-06-07 17:54:47.000000000 +0200
+++ courier-0.68.2/courier/module.esmtp/Makefile.am	2012-06-16 23:01:51.363589115 +0200
@@ -32,7 +32,7 @@
 	touch $@
 
 module_PROGRAMS=courieresmtp courieresmtpd addcr
-INSTALL=@INSTALL@ `test ! -w /etc || echo -o @mailuser@ -g @mailgroup@`
+INSTALL=@INSTALL@ `test \`id -u\` != 0 || echo -o @mailuser@ -g @mailgroup@`
 INSTALL_PROGRAM=${INSTALL} -m 550
 
 EXTRA_DIST=courier.config staticlist.c esmtp.authpam.dist esmtpd.cnf.gnutls
diff -Naur courier-0.68.2-orig/courier/module.esmtp/Makefile.in courier-0.68.2/courier/module.esmtp/Makefile.in
--- courier-0.68.2-orig/courier/module.esmtp/Makefile.in	2012-06-07 17:54:50.000000000 +0200
+++ courier-0.68.2/courier/module.esmtp/Makefile.in	2012-06-16 23:01:51.479587666 +0200
@@ -195,7 +195,7 @@
 EXEEXT = @EXEEXT@
 FGREP = @FGREP@
 GREP = @GREP@
-INSTALL = @INSTALL@ `test ! -w /etc || echo -o @mailuser@ -g @mailgroup@`
+INSTALL = @INSTALL@ `test \`id -u\` != 0 || echo -o @mailuser@ -g @mailgroup@`
 INSTALL_DATA = @INSTALL_DATA@
 INSTALL_PROGRAM = ${INSTALL} -m 550
 INSTALL_SCRIPT = @INSTALL_SCRIPT@

Attachment: signature.asc
Description: PGP signature

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to