[Pkg-cyrus-sasl2-commits] r313 - in /cyrus-sasl-2.1/trunk/debian: changelog sasl2-bin.saslauthd.init

fabbe at users.alioth.debian.org fabbe at users.alioth.debian.org
Fri Feb 15 13:00:56 UTC 2008


Author: fabbe
Date: Fri Feb 15 13:00:56 2008
New Revision: 313

URL: http://svn.debian.org/wsvn/pkg-cyrus-sasl2/?sc=1&rev=313
Log:
Eliminate bashism and use consistent comparison operators throughout the saslauthd init file.

Modified:
    cyrus-sasl-2.1/trunk/debian/changelog
    cyrus-sasl-2.1/trunk/debian/sasl2-bin.saslauthd.init

Modified: cyrus-sasl-2.1/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-cyrus-sasl2/cyrus-sasl-2.1/trunk/debian/changelog?rev=313&op=diff
==============================================================================
--- cyrus-sasl-2.1/trunk/debian/changelog (original)
+++ cyrus-sasl-2.1/trunk/debian/changelog Fri Feb 15 13:00:56 2008
@@ -9,11 +9,13 @@
     DoS attack through infinite loop. (Closes: #465561)
   * debian/patches/0019_ldap_deprecated.dpatch: Signal the use of deprecated
     LDAP functions to avoid implicit pointer conversion. (Closes: #463330)
+  * debian/sasl2-bin.saslauthd.init: Eliminate bashism and use consistent
+    comparison operators throughout. (Closes: #465355)
 
   [ Roberto C. Sanchez ]
   * Add Swedish translation (Closes: #460496)
 
- -- Fabian Fagerholm <fabbe at debian.org>  Fri, 15 Feb 2008 14:45:18 +0200
+ -- Fabian Fagerholm <fabbe at debian.org>  Fri, 15 Feb 2008 14:59:24 +0200
 
 cyrus-sasl2 (2.1.22.dfsg1-17) unstable; urgency=low
 

Modified: cyrus-sasl-2.1/trunk/debian/sasl2-bin.saslauthd.init
URL: http://svn.debian.org/wsvn/pkg-cyrus-sasl2/cyrus-sasl-2.1/trunk/debian/sasl2-bin.saslauthd.init?rev=313&op=diff
==============================================================================
--- cyrus-sasl-2.1/trunk/debian/sasl2-bin.saslauthd.init (original)
+++ cyrus-sasl-2.1/trunk/debian/sasl2-bin.saslauthd.init Fri Feb 15 13:00:56 2008
@@ -143,7 +143,7 @@
 	# Start the daemon, phase 2: it was not running, so actually start it now.
 	start-stop-daemon --start --quiet --pidfile $PIDFILE --name $NAME \
 		--exec $DAEMON -- $DAEMON_ARGS
-	if [ "$?" != 0 ]; then
+	if [ "$?" -ne 0 ]; then
 		log_end_msg 1
 		return 1
 	fi
@@ -187,13 +187,13 @@
 	start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 \
 		--pidfile $PIDFILE --exec $DAEMON
 
-	if [ "$?" = 2 ]; then
+	if [ "$?" -eq 2 ]; then
 		# Failed to stop.
 		log_end_msg 1
 		return 2
 	fi
 
-	if [ "$?" = 1 ]; then
+	if [ "$?" -eq 1 ]; then
 		# Already stopped.
 		log_progress_msg "(not running)"
 	fi
@@ -240,7 +240,7 @@
 	start-stop-daemon --start --quiet --pidfile $PIDFILE \
 		--exec $DAEMON --test > /dev/null
 
-	if [ "$?" == 0 ]; then
+	if [ "$?" -eq 0 ]; then
 		# Not running, signal this and stop.
 		log_progress_msg "(not running)"
 		log_end_msg 0




More information about the Pkg-cyrus-sasl2-commits mailing list