From: Christian Brauner Date: Wed, 3 Jul 2019 19:48:20 +0000 (+0200) Subject: network: record created_name for instantiate_phys() X-Git-Tag: lxc-3.2.0~14^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61302ef7dcf959561f21da95a8d0b71ff555a21a;p=thirdparty%2Flxc.git network: record created_name for instantiate_phys() Signed-off-by: Christian Brauner --- 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.