From 96ecbe4ba3333677026ebe7c0e12105e0226d05d Mon Sep 17 00:00:00 2001 From: Filipe Brandenburger Date: Dec 15 2020 09:45:51 +0000 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