From c902b2da7c3ad0b30469453c77c2aeb132ebc8d1 Mon Sep 17 00:00:00 2001 From: "ntff@github" Date: Thu, 14 Sep 2017 14:19:26 +0000 Subject: [PATCH] update to the recent changes of default behavior in netcat.openbsd netcat.openbsd, mostly used on libvirt servers (libvirt debian daemon depends on netcat.openbsd) has changed (revision 1.111) it's default behavior - it no more closes connection when stdin closes by default. They suggest using "-N" flag for turning on former behavior, but looks like "-q0", which is common with earlier versions and netcat.traditional, will also work. --- lib/vagrant-libvirt/provider.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant-libvirt/provider.rb b/lib/vagrant-libvirt/provider.rb index 13b0e6a..bb6458b 100644 --- a/lib/vagrant-libvirt/provider.rb +++ b/lib/vagrant-libvirt/provider.rb @@ -73,7 +73,7 @@ module VagrantPlugins "ssh '#{@machine.provider_config.host}' " \ "-l '#{@machine.provider_config.username}' " \ "-i '#{@machine.provider_config.id_ssh_key_file}' " \ - 'nc %h %p' + 'nc -q0 %h %p' end