From 61302ef7dcf959561f21da95a8d0b71ff555a21a Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Wed, 3 Jul 2019 21:48:20 +0200 Subject: [PATCH] network: record created_name for instantiate_phys() Signed-off-by: Christian Brauner --- src/lxc/network.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lxc/network.c b/src/lxc/network.c index 6e7004dfb..38c7a75ba 100644 --- a/src/lxc/network.c +++ b/src/lxc/network.c @@ -666,6 +666,8 @@ static int instantiate_phys(struct lxc_handler *handler, struct lxc_netdev *netd return -1; } + strlcpy(netdev->created_name, netdev->link, IFNAMSIZ); + /* * Store the ifindex of the host's network device in the host's * namespace.