ypbind.init: take the first domainname in yp.conf and use only that
(rhbz#601296)
This commit is contained in:
parent
5ef5dbff4c
commit
24980f9281
@ -67,7 +67,7 @@ start() {
|
|||||||
action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
|
action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
|
||||||
else # See if the domain is set in config file
|
else # See if the domain is set in config file
|
||||||
NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
|
NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
|
||||||
awk '{print $2}'`
|
awk '{print $2}' | head -1`
|
||||||
if [ -n "$NISDOMAIN" ]; then
|
if [ -n "$NISDOMAIN" ]; then
|
||||||
action $"domain is '$NISDOMAIN' " \
|
action $"domain is '$NISDOMAIN' " \
|
||||||
domainname $NISDOMAIN
|
domainname $NISDOMAIN
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Summary: The NIS daemon which binds NIS clients to an NIS domain
|
Summary: The NIS daemon which binds NIS clients to an NIS domain
|
||||||
Name: ypbind
|
Name: ypbind
|
||||||
Version: 1.31
|
Version: 1.31
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Source0: ftp://ftp.us.kernel.org/pub/linux/utils/net/NIS/ypbind-mt-%{version}.tar.bz2
|
Source0: ftp://ftp.us.kernel.org/pub/linux/utils/net/NIS/ypbind-mt-%{version}.tar.bz2
|
||||||
@ -79,6 +79,10 @@ fi
|
|||||||
%doc README NEWS COPYING
|
%doc README NEWS COPYING
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jun 8 2010 Karel Klic <kklic@redhat.com> - 3:1.31-6
|
||||||
|
- ypbind.init: take the first domainname in yp.conf and use
|
||||||
|
only that (rhbz#601296)
|
||||||
|
|
||||||
* Fri May 21 2010 Karel Klic <kklic@redhat.com> - 3:1.31-5
|
* Fri May 21 2010 Karel Klic <kklic@redhat.com> - 3:1.31-5
|
||||||
- Moved /sbin/ypbind to /usr/sbin/ypbind, as the package
|
- Moved /sbin/ypbind to /usr/sbin/ypbind, as the package
|
||||||
depends on several utilities from /usr (selinuxenabled,
|
depends on several utilities from /usr (selinuxenabled,
|
||||||
|
Loading…
Reference in New Issue
Block a user