- Remove instaces of \032 in domain search option (#450042)

- Make 'service dhcpd configtest' display text indicating the status
This commit is contained in:
David Cantrell 2008-06-21 20:14:17 +00:00
parent ea7085d2ef
commit 821e00dcda
3 changed files with 12 additions and 3 deletions

View File

@ -4,7 +4,7 @@
Summary: DHCP (Dynamic Host Configuration Protocol) server and relay agent
Name: dhcp
Version: 4.0.0
Release: 15%{?dist}
Release: 16%{?dist}
# NEVER CHANGE THE EPOCH on this package. The previous maintainer (prior to
# dcantrell maintaining the package) made incorrect use of the epoch and
# that's why it is at 12 now. It should have never been used, but it was.
@ -422,6 +422,10 @@ fi
%{_libdir}/libdhcp4client.so
%changelog
* Sat Jun 21 2008 David Cantrell <dcantrell@redhat.com> - 12:4.0.0-16
- Remove instaces of \032 in domain search option (#450042)
- Make 'service dhcpd configtest' display text indicating the status
* Fri May 16 2008 David Cantrell <dcantrell@redhat.com> - 12:4.0.0-15
- Set close-on-exec on dhclient.leases for SELinux (#446632)

View File

@ -62,6 +62,11 @@ configtest() {
[ -f $conf ] || return 6
$dhcpd -q -t -cf $conf
RETVAL=$?
if [ $RETVAL -eq 1 ]; then
$dhcpd -t -cf $conf
else
echo "Syntax: OK" >&2
fi
return $RETVAL
}

4
linux
View File

@ -48,10 +48,10 @@ make_resolv_conf() {
echo '; generated by /sbin/dhclient-script' > $rscf
if [ -n "$new_domain_search" ]; then
echo search $new_domain_search >> $rscf
echo "search ${new_domain_search//\\032/ }" >> $rscf
else
if [ -n "$new_domain_name" ]; then
echo search $new_domain_name >> $rscf
echo "search ${new_domain_name//\\032/ }" >> $rscf
fi
fi