Do not use UNC path for Solaris guest on Windows
This commit is contained in:
parent
9c6ce3357e
commit
056f837fed
|
@ -609,9 +609,10 @@ module VagrantPlugins
|
||||||
end
|
end
|
||||||
|
|
||||||
def share_folders(folders)
|
def share_folders(folders)
|
||||||
|
guestOS = read_guest_property("/VirtualBox/GuestInfo/OS/Product")
|
||||||
folders.each do |folder|
|
folders.each do |folder|
|
||||||
hostpath = folder[:hostpath]
|
hostpath = folder[:hostpath]
|
||||||
if Vagrant::Util::Platform.windows?
|
if Vagrant::Util::Platform.windows? && guestOS != "SunOS"
|
||||||
hostpath = Vagrant::Util::Platform.windows_unc_path(hostpath)
|
hostpath = Vagrant::Util::Platform.windows_unc_path(hostpath)
|
||||||
end
|
end
|
||||||
args = ["--name",
|
args = ["--name",
|
||||||
|
|
|
@ -613,8 +613,15 @@ module VagrantPlugins
|
||||||
end
|
end
|
||||||
|
|
||||||
def share_folders(folders)
|
def share_folders(folders)
|
||||||
|
guestOS = read_guest_property("/VirtualBox/GuestInfo/OS/Product")
|
||||||
folders.each do |folder|
|
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",
|
args = ["--name",
|
||||||
folder[:name],
|
folder[:name],
|
||||||
"--hostpath",
|
"--hostpath",
|
||||||
|
|
Loading…
Reference in New Issue