From 203594e41a8852d9fab87d404d8679106aa94720 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 17 Jul 2013 10:53:24 -0700 Subject: [PATCH] NFS exports with wrong casing on case-insensitive work [GH-1202] --- CHANGELOG.md | 1 + lib/vagrant/action/builtin/nfs.rb | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 032e2ab8a..66227f333 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ BUG FIXES: - Fix uninitialized constant error when configuring Arch Linux network. [GH-1734] - Debian/Ubuntu change hostname works properly if eth0 is configured with hot-plugging. [GH-1929] + - NFS exports with improper casing on Mac OS X work properly. [GH-1202] ## 1.2.4 (July 16, 2013) diff --git a/lib/vagrant/action/builtin/nfs.rb b/lib/vagrant/action/builtin/nfs.rb index eaaf2899a..2cd190987 100644 --- a/lib/vagrant/action/builtin/nfs.rb +++ b/lib/vagrant/action/builtin/nfs.rb @@ -4,6 +4,8 @@ require 'pathname' require "log4r" +require 'vagrant/util/platform' + module Vagrant module Action module Builtin @@ -40,6 +42,7 @@ module Vagrant hostpath = Pathname.new(opts[:hostpath]). expand_path(env[:root_path]). realpath + hostpath = Util::Platform.fs_real_path(hostpath) if !hostpath.directory? && opts[:create] # Host path doesn't exist, so let's create it.