From 8d43fc51b59ab4cfbc65bc01ca4e42dc09b2b6de Mon Sep 17 00:00:00 2001 From: Filipe Brandenburger Date: Mon, 25 Jun 2018 18:07:48 -0700 Subject: resolvconf: fixes for the compatibility interface Also use compat_main() when called as `resolvconf`, since the interface is closer to that of `systemd-resolve`. Use a heap allocated string to set arg_ifname, since a stack allocated one would be lost after the function returns. (This last one broke the case where an interface name was suffixed with a dot, such as in `resolvconf -a tap0.dhcp`.) Tested: $ build/resolvconf -a nonexistent.abc