File: initfile.nosudo

package info (click to toggle)
milter-greylist 4.6.4-4
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,384 kB
  • sloc: ansic: 17,111; yacc: 2,223; lex: 592; sh: 538; makefile: 156
file content (13 lines) | stat: -rw-r--r-- 562 bytes parent folder | download | duplicates (2)
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 su -c "$DAEMON -c" $USER 2>&1 |grep -v 'config .* okay$' |grep . >&2
 	then
 	  echo "failed.  Quitting with error, no action taken."
 	  exit 1