rpms/dhcp/F-10 dhclient-script, 1.3, 1.4 dhcp-4.0.0-inherit-leases.patch, 1.2, 1.3 dhcp.spec, 1.228, 1.229

David Cantrell dcantrel at fedoraproject.org
Tue Nov 11 22:10:45 UTC 2008


Author: dcantrel

Update of /cvs/pkgs/rpms/dhcp/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv28060

Modified Files:
	dhclient-script dhcp-4.0.0-inherit-leases.patch dhcp.spec 
Log Message:
* Tue Nov 11 2008 David Cantrell <dcantrell at redhat.com> - 12:4.0.0-32
- Correctly source ifcfg-DEVICE files (#470928)
- Honor $keep_old_ip in dhclient-script (#471127)



Index: dhclient-script
===================================================================
RCS file: /cvs/pkgs/rpms/dhcp/F-10/dhclient-script,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- dhclient-script	1 Oct 2008 22:38:30 -0000	1.3
+++ dhclient-script	11 Nov 2008 22:10:14 -0000	1.4
@@ -451,10 +451,10 @@
 fi
 
 CONFIG="${interface}"
-need_config ${CONFIG}
-
-if [ -f "${CONFIG}" ]; then
-    source_config
+if [ -d /etc/sysconfig/network-scripts ]; then
+    cd /etc/sysconfig/network-scripts
+    need_config ${CONFIG}
+    source_config >/dev/null 2>&1
 fi
 
 if [ -n "${new_subnet_mask}" ]; then

dhcp-4.0.0-inherit-leases.patch:

Index: dhcp-4.0.0-inherit-leases.patch
===================================================================
RCS file: /cvs/pkgs/rpms/dhcp/F-10/dhcp-4.0.0-inherit-leases.patch,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- dhcp-4.0.0-inherit-leases.patch	1 Aug 2008 22:16:38 -0000	1.2
+++ dhcp-4.0.0-inherit-leases.patch	11 Nov 2008 22:10:14 -0000	1.3
@@ -1,6 +1,6 @@
 diff -up dhcp-4.0.0/client/dhclient.c.inherit dhcp-4.0.0/client/dhclient.c
---- dhcp-4.0.0/client/dhclient.c.inherit	2008-08-01 11:34:29.000000000 -1000
-+++ dhcp-4.0.0/client/dhclient.c	2008-08-01 11:34:42.000000000 -1000
+--- dhcp-4.0.0/client/dhclient.c.inherit	2008-11-11 11:33:43.000000000 -1000
++++ dhcp-4.0.0/client/dhclient.c	2008-11-11 11:34:27.000000000 -1000
 @@ -2296,6 +2296,7 @@ void send_request (cpp)
  {
  	struct client_state *client = cpp;
@@ -18,11 +18,11 @@
 +		if (client -> interface -> addresses != NULL) {
 +			for (i = 0; i < client -> interface -> address_count; i++) {
 +				if (client -> active &&
-+				    client -> active -> is_bootp &&
++				    !client -> active -> is_bootp &&
 +				    client -> active -> expiry > cur_time &&
 +				    client -> interface -> addresses[i].s_addr != 0 &&
 +				    client -> active -> address.len == 4 &&
-+				    memcpy (client -> active -> address.iabuf, &(client -> interface -> addresses[i]), 4) == 0) {
++				    memcmp (client -> active -> address.iabuf, &(client -> interface -> addresses[i]), 4) == 0) {
 +					client_envadd (client, "", "keep_old_ip", "%s", "yes");
 +					break;
 +				}


Index: dhcp.spec
===================================================================
RCS file: /cvs/pkgs/rpms/dhcp/F-10/dhcp.spec,v
retrieving revision 1.228
retrieving revision 1.229
diff -u -r1.228 -r1.229
--- dhcp.spec	29 Oct 2008 23:35:06 -0000	1.228
+++ dhcp.spec	11 Nov 2008 22:10:14 -0000	1.229
@@ -4,7 +4,7 @@
 Summary:  DHCP (Dynamic Host Configuration Protocol) server and relay agent
 Name:     dhcp
 Version:  4.0.0
-Release:  31%{?dist}
+Release:  32%{?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.
@@ -449,6 +449,10 @@
 %{_libdir}/libdhcp4client.so
 
 %changelog
+* Tue Nov 11 2008 David Cantrell <dcantrell at redhat.com> - 12:4.0.0-32
+- Correctly source ifcfg-DEVICE files (#470928)
+- Honor $keep_old_ip in dhclient-script (#471127)
+
 * Wed Oct 29 2008 David Cantrell <dcantrell at redhat.com> - 12:4.0.0-31
 - Use O_CLOEXEC in open(2) calls and "e" mode in fopen(3) calls, build
   with -D_GNU_SOURCE so we pick up O_CLOEXEC (#468984)




More information about the fedora-extras-commits mailing list