diff --git a/autofs-5.0.5-fix-restart.patch b/autofs-5.0.5-fix-restart.patch new file mode 100644 index 0000000..8883682 --- /dev/null +++ b/autofs-5.0.5-fix-restart.patch @@ -0,0 +1,25 @@ +autofs-5.0.5 - fix restart + +From: Ian Kent + +The recent LSB improvement change has introduced a problem with +the restart action. +--- + + redhat/autofs.init.in | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + + +diff --git a/redhat/autofs.init.in b/redhat/autofs.init.in +index 1e926ce..e2a4b78 100644 +--- a/redhat/autofs.init.in ++++ b/redhat/autofs.init.in +@@ -126,7 +126,7 @@ function stop() { + } + + function restart() { +- status > /dev/null 2>&1 ++ status autofs > /dev/null 2>&1 + if [ $? -eq 0 ]; then + stop + fi diff --git a/autofs.spec b/autofs.spec index 11c8155..c967f61 100644 --- a/autofs.spec +++ b/autofs.spec @@ -4,7 +4,7 @@ Summary: A tool for automatically mounting and unmounting filesystems Name: autofs Version: 5.0.5 -Release: 29%{?dist} +Release: 30%{?dist} Epoch: 1 License: GPLv2+ Group: System Environment/Daemons @@ -60,6 +60,7 @@ Patch48: autofs-5.0.5-expire-thread-use-pending-mutex.patch Patch49: autofs-5.0.5-include-krb5-library.patch Patch50: autofs-5.0.5-make-verbose-mode-a-little-less-verbose.patch Patch51: autofs-5.0.5-remove-ERR_remove_state-openssl-call.patch +Patch52: autofs-5.0.5-fix-restart.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: autoconf, hesiod-devel, openldap-devel, bison, flex, libxml2-devel, cyrus-sasl-devel, openssl-devel module-init-tools util-linux nfs-utils e2fsprogs libtirpc-devel Conflicts: cyrus-sasl-lib < 2.1.23-9 @@ -153,6 +154,7 @@ echo %{version}-%{release} > .version %patch49 -p1 %patch50 -p1 %patch51 -p1 +%patch52 -p1 %build #CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --libdir=%{_libdir} @@ -205,6 +207,9 @@ fi %{_libdir}/autofs/ %changelog +* Wed Aug 18 2010 Ian Kent - 1:5.0.5-30.fc15 +- fix restart not working (bz624694). + * Wed Aug 11 2010 Ian Kent - 1:5.0.5-29 - remove ERR_remove_state() openssl call.