018a176a1f
1 OBS-URL: https://build.opensuse.org/request/show/247222 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=203
22 lines
840 B
Diff
22 lines
840 B
Diff
Based on 3125b3ef5db70d45882c7d6f617705802c5f939e Mon Sep 17 00:00:00 2001
|
|
From: Tom Gundersen <teg@jklm.no>
|
|
Date: Thu, 28 Aug 2014 12:15:51 +0200
|
|
Subject: [PATCH] nspawn: fix --network-interface
|
|
|
|
Use SETLINK when modifying an existing link.
|
|
---
|
|
src/nspawn/nspawn.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- src/nspawn/nspawn.c
|
|
+++ src/nspawn/nspawn.c 2014-08-29 14:11:25.866235309 +0000
|
|
@@ -1568,7 +1568,7 @@ static int move_network_interfaces(pid_t
|
|
return -EBUSY;
|
|
}
|
|
|
|
- r = sd_rtnl_message_new_link(rtnl, &m, RTM_NEWLINK, ifi);
|
|
+ r = sd_rtnl_message_new_link(rtnl, &m, RTM_SETLINK, ifi);
|
|
if (r < 0) {
|
|
log_error("Failed to allocate netlink message: %s", strerror(-r));
|
|
return r;
|