[vpnc-script] breakage with commit 6f87b0fe
Mike Miller
mtmiller at debian.org
Mon Dec 26 09:43:09 PST 2016
On Mon, Dec 26, 2016 at 10:14:13 -0300, Thiago Padilha wrote:
> It was naive to assume that the existence of /usr/bin/busctl means
> systemd-resolved is being used. I don't know about /etc/nsswitch.conf, but the
> following patch should fix it by adding a couple of additional checks.
Ack, this works for me, thanks for the quick improvement.
As a nitpick, I think it's generally bad to rely on "/usr/bin/foo". How
about something like
[ -n "$(busctl --version 2>/dev/null)" ]
instead?
--
mike
More information about the openconnect-devel
mailing list