synced_folders/rsync: set chmod flag by default on Windows [GH-3256]

This commit is contained in:
Mitchell Hashimoto 2014-04-02 09:07:00 -07:00
parent 0fe3c9187e
commit 2e0142168e
2 changed files with 6 additions and 0 deletions

View File

@ -36,6 +36,7 @@ BUG FIXES:
- providers/virtualbox: Host-only networks set cableconnected property
to "yes" [GH-3365]
- provisioners/docker: Use proper flags for 0.9. [GH-3356]
- synced\_folders/rsync: Set chmod flag by default on Windows. [GH-3256]
- synced\_folders/smb: IDs of synced folders are hashed to work better
with VMware. [GH-3219]
- synced\_folders/smb: Properly remove existing folders with the

View File

@ -72,6 +72,11 @@ module VagrantPlugins
args = Array(opts[:args]) if opts[:args]
args ||= ["--verbose", "--archive", "--delete", "-z"]
# On Windows, we have to set the chmod flag to avoid permission issues
if Vagrant::Util::Platform.windows?
args << "--chmod=ugo=rwX"
end
# Build up the actual command to execute
command = [
"rsync",