From 3c4e129fb8e48ab1a8369e393e387bec77b5ad2b Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 20 May 2014 19:23:39 -0700 Subject: [PATCH] synced_folders/rsync: dup arg list [GH-3864] --- CHANGELOG.md | 2 ++ plugins/synced_folders/rsync/helper.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 72617e1b9..55dc2e208 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,8 @@ BUG FIXES: disable recursive chown after sync. [GH-3810] - synced\_folders/rsync: Use a proper msys path if not in Cygwin. [GH-3804] + - synced\_folders/rsync: Don't append args infinitely, clear out + arg list on each run. [GH-3864] ## 1.6.2 (May 12, 2014) diff --git a/plugins/synced_folders/rsync/helper.rb b/plugins/synced_folders/rsync/helper.rb index 28bddc813..bc7f6d116 100644 --- a/plugins/synced_folders/rsync/helper.rb +++ b/plugins/synced_folders/rsync/helper.rb @@ -77,7 +77,7 @@ module VagrantPlugins # Get the command-line arguments args = nil - args = Array(opts[:args]) if opts[:args] + args = Array(opts[:args]).dup if opts[:args] args ||= ["--verbose", "--archive", "--delete", "-z", "--copy-links"] # On Windows, we have to set a default chmod flag to avoid permission issues