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

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