dcavalca / rpms / initscripts

Forked from rpms/initscripts 4 years ago
Clone

Blame SOURCES/initscripts-9.49.41-fix-incorrect-condition-for-RESOLV_MODS.patch

b51697
From d7e9663a063e087cd9c77844f56d1c17e7a19402 Mon Sep 17 00:00:00 2001
b51697
From: "David Kaspar [Dee'Kej]" <dkaspar@redhat.com>
b51697
Date: Mon, 20 Aug 2018 14:31:56 +0200
b51697
Subject: [PATCH] ifup-post: fix incorrect condition for RESOLV_MODS
b51697
b51697
  This was causing the /etc/resolv.conf file to be always updated when
b51697
  RESOLV_MODS was not set...
b51697
b51697
  Before the commit 5d6156454bf8f6dab4a5fdd7e1bf6 we were not updating
b51697
  the /etc/resolv.conf file if the RESOLV_MODS was empty.
b51697
b51697
  See https://bugzilla.redhat.com/show_bug.cgi?id=1610411 for more info.
b51697
---
b51697
 sysconfig/network-scripts/ifup-post | 2 +-
b51697
 1 file changed, 1 insertion(+), 1 deletion(-)
b51697
b51697
diff --git a/sysconfig/network-scripts/ifup-post b/sysconfig/network-scripts/ifup-post
b51697
index c002503f..7bf81f2b 100755
b51697
--- a/sysconfig/network-scripts/ifup-post
b51697
+++ b/sysconfig/network-scripts/ifup-post
b51697
@@ -28,7 +28,7 @@ if ! is_true "$NOROUTESET"; then
b51697
 fi
b51697
 
b51697
 
b51697
-if ! is_false "${PEERDNS}" || ! is_false "${RESOLV_MODS}"; then
b51697
+if ! is_false "${PEERDNS}" || is_true "${RESOLV_MODS}"; then
b51697
     # Obtain the DNS entries when using PPP if necessary:
b51697
     [ -n "${MS_DNS1}" ] && DNS1="${MS_DNS1}"
b51697
     [ -n "${MS_DNS2}" ] && DNS2="${MS_DNS2}"
b51697
-- 
b51697
2.14.4
b51697