Package: milter-greylist / 4.5.11-1.1

initfile.nosudo Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: milter-greylist-4.5.11/rc-debian.sh.in
===================================================================
--- milter-greylist-4.5.11.orig/rc-debian.sh.in	2014-08-02 17:38:23.316765370 +0100
+++ milter-greylist-4.5.11/rc-debian.sh.in	2014-08-03 11:51:08.897045469 +0100
@@ -94,7 +94,7 @@
 
   reload)
 	echo -n "Checking config: "
-	if sudo -u $USER $DAEMON -c 2>&1 |grep -v 'config .* okay$' |grep . >&2
+	if sudo -c "$DAEMON -c" $USER 2>&1 |grep -v 'config .* okay$' |grep . >&2
 	then
 	  echo "failed.  Quitting with error, no action taken."
 	  exit 1