From 9311117d662882c9fe10c68a0c6da2638215e724 Mon Sep 17 00:00:00 2001 From: Jiri Popelka Date: Fri, 27 Sep 2013 10:36:11 +0200 Subject: [PATCH] 'No subnet declaration for ' should be info, not error --- dhcp-no-subnet-error2info.patch | 48 +++++++++++++++++++++++++++++++++ dhcp.spec | 9 ++++++- 2 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 dhcp-no-subnet-error2info.patch diff --git a/dhcp-no-subnet-error2info.patch b/dhcp-no-subnet-error2info.patch new file mode 100644 index 0000000..8a7b085 --- /dev/null +++ b/dhcp-no-subnet-error2info.patch @@ -0,0 +1,48 @@ +diff -up dhcp-4.2.5/common/discover.c.error2info dhcp-4.2.5/common/discover.c +--- dhcp-4.2.5/common/discover.c.error2info 2013-09-27 10:27:42.000000000 +0200 ++++ dhcp-4.2.5/common/discover.c 2013-09-27 10:29:30.687201624 +0200 +@@ -782,9 +782,9 @@ discover_interfaces(int state) { + + /* We must have a subnet declaration for each interface. */ + if (!tmp->shared_network && (state == DISCOVER_SERVER)) { +- log_error("%s", ""); ++ log_info("%s", ""); + if (local_family == AF_INET) { +- log_error("No subnet declaration for %s (%s).", ++ log_info("No subnet declaration for %s (%s).", + tmp->name, + (tmp->addresses == NULL) ? + "no IPv4 addresses" : +@@ -799,26 +799,26 @@ discover_interfaces(int state) { + } else { + strcpy(abuf, "no IPv6 addresses"); + } +- log_error("No subnet6 declaration for %s (%s).", ++ log_info("No subnet6 declaration for %s (%s).", + tmp->name, + abuf); + #endif /* DHCPv6 */ + } + if (supports_multiple_interfaces(tmp)) { +- log_error ("** Ignoring requests on %s. %s", ++ log_info ("** Ignoring requests on %s. %s", + tmp -> name, "If this is not what"); +- log_error (" you want, please write %s", ++ log_info (" you want, please write %s", + #ifdef DHCPv6 + (local_family != AF_INET) ? + "a subnet6 declaration" : + #endif + "a subnet declaration"); +- log_error (" in your dhcpd.conf file %s", ++ log_info (" in your dhcpd.conf file %s", + "for the network segment"); +- log_error (" to %s %s %s", ++ log_info (" to %s %s %s", + "which interface", + tmp -> name, "is attached. **"); +- log_error ("%s", ""); ++ log_info ("%s", ""); + goto next; + } else { + log_error ("You must write a %s", diff --git a/dhcp.spec b/dhcp.spec index 47b4d3a..3acf4fa 100644 --- a/dhcp.spec +++ b/dhcp.spec @@ -18,7 +18,7 @@ Summary: Dynamic host configuration protocol software Name: dhcp Version: 4.2.5 -Release: 22%{?dist} +Release: 23%{?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. @@ -80,6 +80,7 @@ Patch46: dhcp-4.2.4-P2-dupl-key.patch Patch47: dhcp-4.2.5-range6.patch Patch48: dhcp-4.2.5-next-server.patch Patch49: dhcp-bindtodevice-inet6.patch +Patch50: dhcp-no-subnet-error2info.patch BuildRequires: autoconf BuildRequires: automake @@ -348,6 +349,9 @@ rm -rf includes/isc-dhcp # (Submitted to dhcp-bugs@isc.org - [ISC-Bugs #34784]) %patch49 -p1 -b .bindtodevice_inet6 +# 'No subnet declaration for ' should be info, not error. +%patch50 -p1 -b .error2info + # Update paths in all man pages for page in client/dhclient.conf.5 client/dhclient.leases.5 \ client/dhclient-script.8 client/dhclient.8 ; do @@ -615,6 +619,9 @@ done %changelog +* Fri Sep 27 2013 Jiri Popelka - 12:4.2.5-23 +- 'No subnet declaration for ' should be info, not error. + * Wed Sep 18 2013 Jiri Popelka - 12:4.2.5-22 - fix segfault introduced with previous commit