diff options
author | Michael Biebl <biebl@debian.org> | 2015-05-07 03:48:14 +0200 |
---|---|---|
committer | Michael Biebl <biebl@debian.org> | 2015-05-07 03:48:16 +0200 |
commit | ec6d303caaa7bc03ca4328026820d193a150af01 (patch) | |
tree | ced48ae1b98f92e8c00d893eabe9021d2b901e6d /debian | |
parent | d5b65cc4768353eb67f1274d021c198cc47d72e7 (diff) |
Fix fallback paths when writing resolv.conf
Closes: #784587
Diffstat (limited to 'debian')
-rw-r--r-- | debian/changelog | 6 | ||||
-rw-r--r-- | debian/patches/dns-Fix-falling-back-in-the-resolv.conf-methods.patch | 30 | ||||
-rw-r--r-- | debian/patches/series | 1 |
3 files changed, 37 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index 091fbf099..525d0aa1b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +network-manager (1.0.2-2) UNRELEASED; urgency=medium + + * Fix fallback paths when writing resolv.conf. (Closes: #784587) + + -- Michael Biebl <biebl@debian.org> Thu, 07 May 2015 03:47:35 +0200 + network-manager (1.0.2-1) unstable; urgency=medium * New upstream release. diff --git a/debian/patches/dns-Fix-falling-back-in-the-resolv.conf-methods.patch b/debian/patches/dns-Fix-falling-back-in-the-resolv.conf-methods.patch new file mode 100644 index 000000000..b354c1892 --- /dev/null +++ b/debian/patches/dns-Fix-falling-back-in-the-resolv.conf-methods.patch @@ -0,0 +1,30 @@ +From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com> +Date: Wed, 6 May 2015 20:49:57 +0200 +Subject: dns: Fix falling back in the resolv.conf methods + +--- + src/dns-manager/nm-dns-manager.c | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/src/dns-manager/nm-dns-manager.c b/src/dns-manager/nm-dns-manager.c +index 2f8ceab..eade2a0 100644 +--- a/src/dns-manager/nm-dns-manager.c ++++ b/src/dns-manager/nm-dns-manager.c +@@ -782,13 +782,16 @@ update_dns (NMDnsManager *self, + + #ifdef NETCONFIG_PATH + if (success == FALSE) { ++ g_clear_error (error); + success = dispatch_netconfig (searches, nameservers, + nis_domain, nis_servers, error); + } + #endif + +- if (success == FALSE) ++ if (success == FALSE) { ++ g_clear_error (error); + success = update_resolv_conf (searches, nameservers, error); ++ } + + /* signal that resolv.conf was changed */ + if (success) diff --git a/debian/patches/series b/debian/patches/series index 1a072f1d0..dd5e2c73e 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -10,3 +10,4 @@ build-install-nm-settings-ifcfg-rh.5-man-page-condit.patch Don-t-make-NetworkManager-D-Bus-activatable.patch Don-t-block-network.target-on-NetworkManager-wait-on.patch Fix-iscsiadm-path.patch +dns-Fix-falling-back-in-the-resolv.conf-methods.patch |