Expand symlinks for NFS host path [GH-1101]

This commit is contained in:
Mitchell Hashimoto 2013-07-10 20:21:13 -07:00
parent e941c549f2
commit 78ef3ded2b
2 changed files with 5 additions and 1 deletions

View File

@ -20,6 +20,8 @@ BUG FIXES:
may be in the box itself. [GH-1061]
- NFS synced folders exporting sub-directories of other exported folders now
works properly. [GH-785]
- NFS shared folders properly dereference symlinks so that the real path
is used, avoiding mount errors [GH-1101]
## 1.2.3 (July 9, 2013)

View File

@ -37,7 +37,9 @@ module Vagrant
# Expand the host path, create it if we have to and
# store away the folder.
hostpath = Pathname.new(opts[:hostpath]).expand_path(env[:root_path])
hostpath = Pathname.new(opts[:hostpath]).
expand_path(env[:root_path]).
realpath
if !hostpath.directory? && opts[:create]
# Host path doesn't exist, so let's create it.