rpms/dhcp/devel dhcp-4.0.0-parser.patch, NONE, 1.1 dhcp.spec, 1.196, 1.197 dhcp-4.0.0-discover-file-handle.patch, 1.1, NONE
David Cantrell (dcantrel)
fedora-extras-commits at redhat.com
Thu Jan 17 02:24:08 UTC 2008
Author: dcantrel
Update of /cvs/pkgs/rpms/dhcp/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv22265
Modified Files:
dhcp.spec
Added Files:
dhcp-4.0.0-parser.patch
Removed Files:
dhcp-4.0.0-discover-file-handle.patch
Log Message:
* Wed Jan 16 2008 David Cantrell <dcantrell at redhat.com> - 12:4.0.0-4
- Fix dhclient.lease file parsing problems (#428785)
- Disable IPv6 support for now as we already ship dhcpv6 (#428987)
dhcp-4.0.0-parser.patch:
--- NEW FILE dhcp-4.0.0-parser.patch ---
diff -up dhcp-4.0.0/common/conflex.c.parse dhcp-4.0.0/common/conflex.c
--- dhcp-4.0.0/common/conflex.c.parse 2008-01-16 15:26:09.000000000 -1000
+++ dhcp-4.0.0/common/conflex.c 2008-01-16 16:02:48.000000000 -1000
@@ -182,8 +182,12 @@ static int get_char (cfile)
c = EOF;
}
} else {
- c = cfile->inbuf [cfile->bufix];
- cfile->bufix++;
+ if (strlen(cfile->inbuf) >= (cfile->bufix + 1)) {
+ c = EOF;
+ } else {
+ c = cfile->inbuf [cfile->bufix];
+ cfile->bufix++;
+ }
}
if (!cfile->ugflag) {
Index: dhcp.spec
===================================================================
RCS file: /cvs/pkgs/rpms/dhcp/devel/dhcp.spec,v
retrieving revision 1.196
retrieving revision 1.197
diff -u -r1.196 -r1.197
--- dhcp.spec 16 Jan 2008 00:30:01 -0000 1.196
+++ dhcp.spec 17 Jan 2008 02:23:35 -0000 1.197
@@ -4,7 +4,7 @@
Summary: DHCP (Dynamic Host Configuration Protocol) server and relay agent
Name: dhcp
Version: 4.0.0
-Release: 3%{?dist}
+Release: 4%{?dist}
# NEVER CHANGE THE EPOCH on this package. The previous maintainer made
# incorrect use of the epoch and that's why it is at 12 now. It should have
# never been used, but it was. So we are stuck with it.
@@ -42,7 +42,7 @@
Patch14: %{name}-4.0.0-manpages.patch
Patch15: %{name}-4.0.0-paths.patch
Patch16: %{name}-4.0.0-libdhcp4client.patch
-Patch17: %{name}-4.0.0-discover-file-handle.patch
+Patch17: %{name}-4.0.0-parser.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: autoconf
@@ -189,7 +189,7 @@
# Add the libdhcp4client target (library version of dhclient)
%patch16 -p1
-# Check file handle passed to fgets() in common/discover.c
+# Fix parsing errors
%patch17 -p1
# Copy in documentation and example scripts for LDAP patch to dhcpd
@@ -235,7 +235,7 @@
%build
CFLAGS="%{optflags} -fPIC" \
%configure \
- --enable-dhcpv6 \
+ --disable-dhcpv6 \
--with-srv-lease-file=%{_localstatedir}/lib/dhcpd/dhcpd.leases \
--with-cli-lease-file=%{_localstatedir}/lib/dhclient/dhclient.leases \
--with-srv-pid-file=%{_localstatedir}/run/dhcpd.pid \
@@ -404,6 +404,10 @@
%{_libdir}/libdhcp4client.so
%changelog
+* Wed Jan 16 2008 David Cantrell <dcantrell at redhat.com> - 12:4.0.0-4
+- Fix dhclient.lease file parsing problems (#428785)
+- Disable IPv6 support for now as we already ship dhcpv6 (#428987)
+
* Tue Jan 15 2008 David Cantrell <dcantrell at redhat.com> - 12:4.0.0-3
- Fix segfault in next_iface4() and next_iface6() (#428870)
--- dhcp-4.0.0-discover-file-handle.patch DELETED ---
More information about the fedora-extras-commits
mailing list