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

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