diff --git a/lib/vagrant/machine.rb b/lib/vagrant/machine.rb index 88ef368bd..f7f190d63 100644 --- a/lib/vagrant/machine.rb +++ b/lib/vagrant/machine.rb @@ -4,6 +4,7 @@ require "digest/md5" require "thread" require "log4r" +require "vagrant/util/platform" module Vagrant # This represents a machine that Vagrant manages. This provides a singular @@ -593,7 +594,7 @@ module Vagrant ).chomp end - if vagrant_cwd != @env.root_path.to_s + if !File.identical?(vagrant_cwd.to_s, @env.root_path.to_s) if vagrant_cwd ui.warn(I18n.t( 'vagrant.moved_cwd',