-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
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
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 ]
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
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 ]
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 ]
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