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

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