]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Imported Debian patch 1.1.1-6 debian/1%1.1.1-6
authorSteinar H. Gunderson <sesse@debian.org>
Tue, 30 Oct 2007 16:18:12 +0000 (17:18 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 14 Jul 2010 01:59:24 +0000 (02:59 +0100)
debian/changelog
debian/nfs-common.init

index 0ee6cfd8b17922b1b52d158470c0c6cb9f88b8a2..a9e506bfc449002bbe2ffb58a0501a4c8c0d0ddd 100644 (file)
@@ -1,9 +1,11 @@
-nfs-utils (1:1.1.1-5) unstable; urgency=low
+nfs-utils (1:1.1.1-6) unstable; urgency=low
 
-  * Fixed syntax error in nfs-common. Closes: #448538, #448607.
-    Patch by Alban Browaeys <prahal@yahoo.com>
+  * Fix typo in init script. (Closes: #448538, #448607, #448564)
+  * In the init script, save the value of $? into a variable instead of using
+    $? over and over again, as it will get clobbered after the first command
+    using it.
 
- -- Anibal Monsalve Salazar <anibal@debian.org>  Tue, 30 Oct 2007 22:41:12 +1100
+ -- Steinar H. Gunderson <sesse@debian.org>  Tue, 30 Oct 2007 17:18:12 +0100
 
 nfs-utils (1:1.1.1-4) unstable; urgency=low
 
index a8ca61c0a75cf93bd06d1e4b3a44f42e0dc614ca..c81edfb552b1b23aa88bb443b1dc60e21db62f41 100644 (file)
@@ -124,9 +124,10 @@ case "$1" in
            log_progress_msg "statd"
            start-stop-daemon --start --oknodo --quiet \
                --exec $PREFIX/sbin/rpc.statd -- $STATDOPTS
-           if [ $? != 0 ]; then
-               log_end_msg $?
-               exit $?
+           RET=$?
+           if [ $RET != 0 ]; then
+               log_end_msg $RET
+               exit $RET
            fi
        fi
 
@@ -146,9 +147,10 @@ case "$1" in
                    log_progress_msg "idmapd"
                    start-stop-daemon --start --oknodo --quiet \
                            --exec /usr/sbin/rpc.idmapd
-                   if [ $? != 0 ]; then
-                       log_end_msg $?
-                       exit $?
+                   RET=$?
+                   if [ $RET != 0 ]; then
+                       log_end_msg $RET
+                       exit $RET
                     fi
                fi
                if [ "$NEED_GSSD" = yes ]
@@ -165,9 +167,10 @@ case "$1" in
 
                    start-stop-daemon --start --oknodo --quiet \
                            --exec /usr/sbin/rpc.gssd -- $RPCGSSDOPTS
-                   if [ $? != 0 ]; then
-                       log_end_msg $?
-                       exit $?
+                   RET=$?
+                   if [ $RET != 0 ]; then
+                       log_end_msg $RET
+                       exit $RET
                     fi
                fi
            fi
@@ -183,9 +186,10 @@ case "$1" in
            log_progress_msg "gssd"
            start-stop-daemon --stop --oknodo --quiet \
                    --name rpc.gssd
-           if [ $? != 0 ]; then
-                log_end_msg $?
-                exit $?
+           RET=$?
+           if [ $RET != 0 ]; then
+                log_end_msg $RET
+                exit $RET
             fi
        fi
        if [ "$NEED_IDMAPD" = yes ]
@@ -193,9 +197,10 @@ case "$1" in
            log_progress_msg "idmapd"
            start-stop-daemon --stop --oknodo --quiet \
                --name rpc.idmapd
-           if [ $? != 0 ]; then
-                log_end_msg $?
-                exit $?
+            RET=$?
+           if [ $RET != 0 ]; then
+                log_end_msg $RET
+                exit $RET
             fi
        fi
        if [ "$NEED_STATD" = yes ]
@@ -203,9 +208,10 @@ case "$1" in
            log_progress_msg "statd"
            start-stop-daemon --stop --oknodo --quiet \
                --name rpc.statd
-           if [ $? != 0 ]; then
-                log_end_msg $?
-                exit $?
+           RET=$?
+           if [ $RET != 0 ]; then
+                log_end_msg $RET
+                exit $RET
             fi
        fi
        do_umount $PIPEFS_MOUNTPOINT 2>/dev/null || true