From 9f49b9298e1e345b532e9e8cf20fdf04ece1ab1e Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 7 Apr 2013 13:57:24 -0700 Subject: [PATCH] vagrant ssh on Cygwin won't output DOS path file warnings --- CHANGELOG.md | 1 + lib/vagrant/util/ssh.rb | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c013e946..27ea259bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,6 +43,7 @@ IMPROVEMENTS: environmental variable. [GH-1478] - Invalid settings are now caught and shown in a user-friendly way. [GH-1484] - Detect PuTTY Link SSH client on Windows and show an error. [GH-1518] + - `vagrant ssh` in Cygwin won't output DOS path file warnings. BUG FIXES: diff --git a/lib/vagrant/util/ssh.rb b/lib/vagrant/util/ssh.rb index b1a670da7..003021306 100644 --- a/lib/vagrant/util/ssh.rb +++ b/lib/vagrant/util/ssh.rb @@ -137,6 +137,10 @@ module Vagrant host_string = "#{options[:username]}@#{host_string}" if !plain_mode command_options.unshift(host_string) + # On Cygwin we want to get rid of any DOS file warnings because + # we really don't care since both work. + ENV["nodosfilewarning"] = "1" if Platform.cygwin? + # Invoke SSH with all our options LOGGER.info("Invoking SSH: #{command_options.inspect}") SafeExec.exec("ssh", *command_options)