[ypbind] Check presence of ypbind in /etc/rpc Related: #888778
Honza Horak
hhorak at fedoraproject.org
Wed Dec 19 16:41:53 UTC 2012
commit 70ff89b4cff13d1d3f7ab4e4b51d9addb155818c
Author: Honza HorĂ¡k <hhorak at redhat.com>
Date: Wed Dec 19 17:41:32 2012 +0100
Check presence of ypbind in /etc/rpc
Related: #888778
ypbind-pre-setdomain | 7 +++++++
ypbind.spec | 6 +++++-
2 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/ypbind-pre-setdomain b/ypbind-pre-setdomain
index 7ef5fc8..1d5dbed 100755
--- a/ypbind-pre-setdomain
+++ b/ypbind-pre-setdomain
@@ -27,5 +27,12 @@ if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
fi
fi
+#/etc/rpc check
+grep ypbind /etc/rpc > /dev/null 2>&1
+if [ $? -ne 0 ]; then
+ logger -t ypbind $"Error: Missing ypbind entry in /etc/rpc."
+ exit 1
+fi
+
echo
diff --git a/ypbind.spec b/ypbind.spec
index e8b607a..30fa951 100644
--- a/ypbind.spec
+++ b/ypbind.spec
@@ -1,7 +1,7 @@
Summary: The NIS daemon which binds NIS clients to an NIS domain
Name: ypbind
Version: 1.36
-Release: 8%{?dist}
+Release: 9%{?dist}
License: GPLv2
Group: System Environment/Daemons
Source0: http://www.linux-nis.org/download/ypbind-mt/ypbind-mt-%{version}.tar.bz2
@@ -139,6 +139,10 @@ install -m 755 %{SOURCE5} $RPM_BUILD_ROOT%{_libexecdir}/ypbind-post-waitbind
%doc README NEWS COPYING
%changelog
+* Wed Dec 19 2012 Honza Horak <hhorak at redhat.com> - 3:1.36-9
+- Check presence of ypbind in /etc/rpc
+ Related: #888778
+
* Fri Nov 30 2012 Honza Horak <hhorak at redhat.com> - 3:1.36-8
- Build with full relro
More information about the scm-commits
mailing list