Do not use UNC path for Solaris guest on Windows

This commit is contained in:
Richard Gareau 2016-08-16 11:49:47 -04:00 committed by Chris Roberts
parent 9c6ce3357e
commit 056f837fed
2 changed files with 10 additions and 2 deletions

View File

@ -609,9 +609,10 @@ module VagrantPlugins
end
def share_folders(folders)
guestOS = read_guest_property("/VirtualBox/GuestInfo/OS/Product")
folders.each do |folder|
hostpath = folder[:hostpath]
if Vagrant::Util::Platform.windows?
if Vagrant::Util::Platform.windows? && guestOS != "SunOS"
hostpath = Vagrant::Util::Platform.windows_unc_path(hostpath)
end
args = ["--name",

View File

@ -613,8 +613,15 @@ module VagrantPlugins
end
def share_folders(folders)
guestOS = read_guest_property("/VirtualBox/GuestInfo/OS/Product")
folders.each do |folder|
hostpath = Vagrant::Util::Platform.windows_path(folder[:hostpath])
# NOTE: Guest additions on Solaris guests do not properly handle
# UNC style paths so prevent conversion (See GH-7264)
if guestOS == "SunOS"
hostpath = folder[:hostpath]
else
hostpath = Vagrant::Util::Platform.windows_path(folder[:hostpath])
end
args = ["--name",
folder[:name],
"--hostpath",