From f32a865abd5c99d26cbe9ac531d5da8acf776180 Mon Sep 17 00:00:00 2001 From: Eric Coleman Date: Tue, 25 Mar 2014 18:36:05 -0400 Subject: [PATCH] Properly escape path in cygwin bash check Quick attempt at properly fixing #3304 --- lib/vagrant/util/platform.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/util/platform.rb b/lib/vagrant/util/platform.rb index 83820f5e5..6e51667be 100644 --- a/lib/vagrant/util/platform.rb +++ b/lib/vagrant/util/platform.rb @@ -1,4 +1,5 @@ require 'rbconfig' +require 'shellwords' require 'tmpdir' require "vagrant/util/subprocess" @@ -67,7 +68,7 @@ module Vagrant "bash", "--noprofile", "--norc", - "-c", "cd #{path} && pwd") + "-c", "cd #{Shellwords.escape(path)} && pwd") return process.stdout.chomp end end