From 83d64b0a69554e74ce9a40452d2a433db0c62c60 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Sat, 25 Jul 2020 02:18:13 -0600 Subject: [PATCH] libifupdown: lifecycle: IFACE env variable should be set to the logical ifname --- libifupdown/lifecycle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libifupdown/lifecycle.c b/libifupdown/lifecycle.c index f773a95..0c4ff78 100644 --- a/libifupdown/lifecycle.c +++ b/libifupdown/lifecycle.c @@ -209,7 +209,7 @@ lif_lifecycle_run_phase(const struct lif_execute_opts *opts, struct lif_interfac { char **envp = NULL; - lif_environment_push(&envp, "IFACE", iface->ifname); + lif_environment_push(&envp, "IFACE", lifname); lif_environment_push(&envp, "PHASE", phase); /* try to provide $METHOD for ifupdown1 scripts if we can */