diff options
author | Greg Frost <gregfrost1@bigpond.com> | 2009-08-01 23:57:05 (GMT) |
---|---|---|
committer | Greg Frost <gregfrost1@bigpond.com> | 2009-08-01 23:57:05 (GMT) |
commit | 657aa7b8d352108a98719a22e6422b490e598d26 (patch) | |
tree | b2259685fe6409f86d814a1703068ce0fcf0ace8 /abs/core-testing/dhcp/dhcp-4.1.0-missing-ipv6-not-fatal.patch | |
parent | 3f300e50406f82e3fde4f48dd7c14fa79cbcd99a (diff) | |
parent | 61344e5f8def4236eadfb43c1efd30bc65c21394 (diff) | |
download | linhes_pkgbuild-657aa7b8d352108a98719a22e6422b490e598d26.zip linhes_pkgbuild-657aa7b8d352108a98719a22e6422b490e598d26.tar.gz linhes_pkgbuild-657aa7b8d352108a98719a22e6422b490e598d26.tar.bz2 |
Merge branch 'master' of ssh://gregfrost@knoppmyth.net/mount/repository/LinHES-PKGBUILD
Diffstat (limited to 'abs/core-testing/dhcp/dhcp-4.1.0-missing-ipv6-not-fatal.patch')
-rw-r--r-- | abs/core-testing/dhcp/dhcp-4.1.0-missing-ipv6-not-fatal.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/abs/core-testing/dhcp/dhcp-4.1.0-missing-ipv6-not-fatal.patch b/abs/core-testing/dhcp/dhcp-4.1.0-missing-ipv6-not-fatal.patch new file mode 100644 index 0000000..ebf3865 --- /dev/null +++ b/abs/core-testing/dhcp/dhcp-4.1.0-missing-ipv6-not-fatal.patch @@ -0,0 +1,50 @@ +diff -Naur dhcp-4.1.0a2/common/discover.c dhcp-4.1.0a2-mcn/common/discover.c +--- dhcp-4.1.0a2/common/discover.c 2008-08-29 18:48:57.000000000 +0100 ++++ dhcp-4.1.0a2-mcn/common/discover.c 2008-10-02 13:02:06.000000000 +0100 +@@ -443,15 +443,17 @@ + } + + #ifdef DHCPv6 +- ifaces->fp6 = fopen("/proc/net/if_inet6", "r"); +- if (ifaces->fp6 == NULL) { +- log_error("Error opening '/proc/net/if_inet6' to " +- "list IPv6 interfaces; %m"); +- close(ifaces->sock); +- ifaces->sock = -1; +- fclose(ifaces->fp); +- ifaces->fp = NULL; +- return 0; ++ if (local_family == AF_INET6) { ++ ifaces->fp6 = fopen("/proc/net/if_inet6", "r"); ++ if (ifaces->fp6 == NULL) { ++ log_error("Error opening '/proc/net/if_inet6' to " ++ "list IPv6 interfaces; %m"); ++ close(ifaces->sock); ++ ifaces->sock = -1; ++ fclose(ifaces->fp); ++ ifaces->fp = NULL; ++ return 0; ++ } + } + #endif + +@@ -720,7 +722,8 @@ + } + #ifdef DHCPv6 + if (!(*err)) { +- return next_iface6(info, err, ifaces); ++ if (local_family == AF_INET6) ++ return next_iface6(info, err, ifaces); + } + #endif + return 0; +@@ -736,7 +739,8 @@ + close(ifaces->sock); + ifaces->sock = -1; + #ifdef DHCPv6 +- fclose(ifaces->fp6); ++ if (local_family == AF_INET6) ++ fclose(ifaces->fp6); + ifaces->fp6 = NULL; + #endif + } |