Skip to contentSkip to conversation

net: Use correct default-path macro for downscript

PATCH Applied Keqian Zhu 2 participants 2 messages Nov 23, 2020 Networking

lore
Share & tools
lore

Keqian Zhu

author
#0 lore raw

PATCH 1/1 net: Use correct default-path macro for downscript

Fixes 63c4db4c2e6d (net: relocate paths to helpers and scripts)
---
 net/tap.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
net/tap.c +2 -1
index c46ff66184..b8e5cca51c 100644
@@ -951,7 +951,8 @@ free_fail:
             script = default_script = get_relocated_path(DEFAULT_NETWORK_SCRIPT);
         }
         if (!downscript) {
-            downscript = default_downscript = get_relocated_path(DEFAULT_NETWORK_SCRIPT);
+            downscript = default_downscript =
+                                 get_relocated_path(DEFAULT_NETWORK_DOWN_SCRIPT);
         }
 
         if (tap->has_ifname) {
Signature · 1 line
2.23.0
Applied
#1 lore raw
Quoted 11 lines · Keqian Zhu
Fixes 63c4db4c2e6d (net: relocate paths to helpers and scripts)
---
  net/tap.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
net/tap.c +0 -0
index c46ff66184..b8e5cca51c 100644

net/tap.c free_fail: · line 958

Quoted 9 lines
net/tap.c +2 -1
@@ -951,7 +951,8 @@ free_fail:
              script = default_script = get_relocated_path(DEFAULT_NETWORK_SCRIPT);
          }
          if (!downscript) {
-            downscript = default_downscript = get_relocated_path(DEFAULT_NETWORK_SCRIPT);
+            downscript = default_downscript =
+                                 get_relocated_path(DEFAULT_NETWORK_DOWN_SCRIPT);
          }
 
          if (tap->has_ifname) {

Applied.

Thanks