Bug#397818: sasl2-bin: init script is broken if MECH_OPTIONS is empty

Fabian Fagerholm fabbe at paniq.net
Thu Nov 9 20:01:14 CET 2006


Package: sasl2-bin
Version: 2.1.22.dfsg1-1
Severity: important
Tags: patch pending

If MECH_OPTIONS is empty, the -O flag will eat some of the subsequent options.
The attached patch fixes this by including the -O flag only if MECH_OPTIONS
contains something.

-- 
Fabian Fagerholm <fabbe at paniq.net>
-------------- next part --------------
Index: sasl2-bin.saslauthd.init
===================================================================
--- sasl2-bin.saslauthd.init	(revision 137)
+++ sasl2-bin.saslauthd.init	(working copy)
@@ -54,8 +54,13 @@
 	exit $EXIT_ERROR_CODE
 fi
 
+# If there are mechanism options defined, prepare them for use with the -O flag
+if [ -n "$MECH_OPTIONS" ]; then
+	MECH_OPTIONS="-O $MECH_OPTIONS"
+fi
+
 # Construct argument string
-DAEMON_ARGS="$DAEMON_ARGS -a $MECHANISMS $OPTIONS -O $MECH_OPTIONS -n $THREADS"
+DAEMON_ARGS="$DAEMON_ARGS -a $MECHANISMS $MECH_OPTIONS $OPTIONS -n $THREADS"
 
 #
 # Function that creates a directory with the specified


More information about the Pkg-cyrus-sasl2-debian-devel mailing list