From 2ac9243442f80908dc4b19ed6fc81065cf0501e7 Mon Sep 17 00:00:00 2001 From: yinle Date: Mon, 27 Jun 2011 14:57:19 +0000 Subject: [PATCH] rebuild yaboot with 3.17-rc1 Former-commit-id: 1779e9889e2b6920d315dfcd54c55c254601e462 --- yaboot/yaboot-sanedhcppriority.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 yaboot/yaboot-sanedhcppriority.patch diff --git a/yaboot/yaboot-sanedhcppriority.patch b/yaboot/yaboot-sanedhcppriority.patch new file mode 100644 index 0000000..3ddbe36 --- /dev/null +++ b/yaboot/yaboot-sanedhcppriority.patch @@ -0,0 +1,21 @@ +--- yaboot-1.3.17-rc1/second/file.c 2010-08-05 01:04:46.000000000 -0400 ++++ yaboot-1.3.17-rc1-sanedhcppriority/second/file.c 2011-05-31 02:28:30.344814639 -0400 +@@ -242,16 +242,14 @@ + + switch (tag) { + case DHCP_NETMASK: +- if ((result->subnetmask == NULL || +- *(result->subnetmask) == '\x0') && value != 0) { ++ if (value != 0) { + result->subnetmask = ipv4_to_str(value); + DEBUG_F("Storing %s as subnetmask from options\n", + result->subnetmask); + } + break; + case DHCP_ROUTERS: +- if ((result->giaddr == NULL || *(result->giaddr) == '\x0') +- && value != 0) { ++ if (value != 0) { + result->giaddr = ipv4_to_str(value); + DEBUG_F("Storing %s as gateway from options\n", + result->giaddr);