Mount VBox shared folders with proper owner/group [GH-1611]

This commit is contained in:
Mitchell Hashimoto 2013-04-16 17:09:32 -07:00
parent 0f089c5671
commit 0e7a9d3c91
2 changed files with 4 additions and 2 deletions

View File

@ -15,6 +15,7 @@ BUG FIXES:
- Chef solo run list properly set. [GH-1608] - Chef solo run list properly set. [GH-1608]
- Follow 30x redirects when downloading boxes. [GH-1607] - Follow 30x redirects when downloading boxes. [GH-1607]
- Chef client config defaults are done properly. [GH-1609] - Chef client config defaults are done properly. [GH-1609]
- VirtualBox mounts shared folders with the proper owner/group. [GH-1611]
## 1.2.0 (April 16, 2013) ## 1.2.0 (April 16, 2013)

View File

@ -108,8 +108,9 @@ module VagrantPlugins
data = data.dup data = data.dup
# Calculate the owner and group # Calculate the owner and group
data[:owner] ||= @env[:machine].config.ssh.username ssh_info = @env[:machine].ssh_info
data[:group] ||= @env[:machine].config.ssh.username data[:owner] ||= ssh_info[:username]
data[:group] ||= ssh_info[:username]
# Mount the actual folder # Mount the actual folder
@env[:machine].guest.capability( @env[:machine].guest.capability(