summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2015-01-29 13:02:59 -0600
committerDan Williams <dcbw@redhat.com>2015-02-17 08:51:51 -0600
commit7daf63461de4195b1626ca15f835fc7cbc56e847 (patch)
tree287bdce48b4357849e7857f52fd2e4efaa9cc688 /configure.ac
parent530efb3882532be5d9bc4d0dd1aca26ca969a7eb (diff)
dhcp: gracefully recover from failed DHCP BOUND state transitions (bgo #743700)
First, configure.ac's grep was wrong and wasn't setting DHCPCD_SUPPORTS_IPV6, which caused dhcpcd to acquire a DHCPv6 address when NM didn't think that was going to happen, and thus DHCP options couldn't be parsed. Second, even if that does happen, don't just assert and quit, but set the DHCP state to failed. https://bugzilla.gnome.org/show_bug.cgi?id=743700 (cherry picked from commit 511a7395bff0253f8d1e0d7f35849151d9caa98f)
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 5c87c7e507..57919cc863 100644
--- a/configure.ac
+++ b/configure.ac
@@ -685,10 +685,10 @@ fi
if test "$with_dhcpcd" = "yes"; then
AC_PATH_PROGS(with_dhcpcd, dhcpcd, no, /sbin:/usr/sbin:/usr/local/sbin)
if test "$with_dhcpcd" != "no"; then
- if ! $with_dhcpcd --version 2>&1 | grep -q "^dhcpcd [[456789]]\."; then
+ if ! $with_dhcpcd --version 2>&1 | grep -q "^dhcpcd [456789]\."; then
AC_MSG_WARN([Cannot use dhcpcd, version 4.x or higher is required])
with_dhcpcd=no
- elif $with_dhcpcd --version 2>&1 | grep -q "^dhcpcd [[6789]]\."; then
+ elif $with_dhcpcd --version 2>&1 | grep -q "^dhcpcd [6789]\."; then
AC_DEFINE(DHCPCD_SUPPORTS_IPV6, 1, [Define if dhcpcd supports IPv6 (6.x+)])
fi
fi