Blame SOURCES/autofs-5.0.7-fix-init-script-status-return.patch

304803
autofs-5.0.7 - fix init script status return
304803
304803
From: Ian Kent <ikent@redhat.com>
304803
304803
The patch that added the piddir to configure to fix incorrect init
304803
script status() function returns failed to actually return the value
304803
to the user.
304803
---
304803
304803
 CHANGELOG             |    1 +
304803
 redhat/autofs.init.in |    2 +-
304803
 2 files changed, 2 insertions(+), 1 deletions(-)
304803
304803
304803
diff --git a/CHANGELOG b/CHANGELOG
304803
index 76c1f73..5bcb1af 100644
304803
--- a/CHANGELOG
304803
+++ b/CHANGELOG
304803
@@ -19,6 +19,7 @@
304803
 - Allow nsswitch.conf to not contain "automount:" lines.
304803
 - fix nobind man page description.
304803
 - fix submount offset delete.
304803
+- fix init script status return.
304803
 
304803
 25/07/2012 autofs-5.0.7
304803
 =======================
304803
diff --git a/redhat/autofs.init.in b/redhat/autofs.init.in
304803
index fe18b3e..9d008ff 100644
304803
--- a/redhat/autofs.init.in
304803
+++ b/redhat/autofs.init.in
304803
@@ -172,7 +172,7 @@ RETVAL=0
304803
 case "$1" in
304803
 	status)
304803
 		status -p @@autofspiddir@@/autofs.pid -l autofs $prog
304803
-		exit 0;
304803
+		exit $?;
304803
 		;;
304803
 	usage)
304803
 		usage_message