libifupdown: lifecycle: IFACE env variable should be set to the logical ifname

This commit is contained in:
Ariadne Conill 2020-07-25 02:18:13 -06:00
parent 96112d5dc9
commit 83d64b0a69

View file

@ -209,7 +209,7 @@ lif_lifecycle_run_phase(const struct lif_execute_opts *opts, struct lif_interfac
{ {
char **envp = NULL; char **envp = NULL;
lif_environment_push(&envp, "IFACE", iface->ifname); lif_environment_push(&envp, "IFACE", lifname);
lif_environment_push(&envp, "PHASE", phase); lif_environment_push(&envp, "PHASE", phase);
/* try to provide $METHOD for ifupdown1 scripts if we can */ /* try to provide $METHOD for ifupdown1 scripts if we can */