synced_folders\rsync: remove non-portable '-v' flag from chown [GH-3743]

Aside of the already fixed OpenBSD, at least Solaris `chown` seems not
to support the `-v` option, so remove it from all guests.
This commit is contained in:
Teemu Matilainen 2014-05-10 23:51:12 +03:00
parent c24cbd1da6
commit f87c7a9bc9
7 changed files with 7 additions and 7 deletions

View File

@ -23,7 +23,6 @@ BUG FIXES:
bad locks. [GH-3735]
- commands/package: Don't double included files in package. [GH-3637]
- guests/linux: Rsync chown ignores symlinks. [GH-3744]
- guests/openbsd: Remove '-v' flag from chown for rsync. [GH-3743]
- provisioners/shell: Fix shell provisioner config validation when the
`binary` option is set to false [GH-3712]
- providers/docker: default proxy VM won't use HGFS [GH-3687]
@ -31,6 +30,7 @@ BUG FIXES:
- providers/docker: Port settings expose to host properly. [GH-3723]
- provisioners/puppet: Separate module paths with ';' on Windows. [GH-3731]
- synced\_folders\rsync: Copy symlinks as real files. [GH-3734]
- synced\_folders\rsync: Remove non-portable '-v' flag from chown. [GH-3743]
## 1.6.1 (May 7, 2014)

View File

@ -19,7 +19,7 @@ module VagrantPlugins
def self.rsync_post(machine, opts)
machine.communicate.sudo(
"find '#{opts[:guestpath]}' '(' ! -user #{opts[:owner]} -or ! -group #{opts[:group]} ')' -print0 | " +
"xargs -0 -r chown -v #{opts[:owner]}:#{opts[:group]}")
"xargs -0 -r chown #{opts[:owner]}:#{opts[:group]}")
end
end
end

View File

@ -25,7 +25,7 @@ module VagrantPlugins
def self.rsync_post(machine, opts)
machine.communicate.sudo(
"find '#{opts[:guestpath]}' '(' ! -user #{opts[:owner]} -or ! -group #{opts[:group]} ')' -print0 | " +
"xargs -0 -r chown -v #{opts[:owner]}:#{opts[:group]}")
"xargs -0 -r chown #{opts[:owner]}:#{opts[:group]}")
end
end
end

View File

@ -26,7 +26,7 @@ module VagrantPlugins
def self.rsync_post(machine, opts)
machine.communicate.sudo(
"find '#{opts[:guestpath]}' '(' ! -user #{opts[:owner]} -or ! -group #{opts[:group]} ')' -print0 | " +
"xargs -0 -r chown -v #{opts[:owner]}:#{opts[:group]}")
"xargs -0 -r chown #{opts[:owner]}:#{opts[:group]}")
end
end
end

View File

@ -18,7 +18,7 @@ module VagrantPlugins
def self.rsync_post(machine, opts)
machine.communicate.sudo("find '#{opts[:guestpath]}' '(' ! -user #{opts[:owner]} -or ! -group #{opts[:group]} ')' -print0 | " +
"xargs -0 -r chown -v #{opts[:owner]}:#{opts[:group]}")
"xargs -0 -r chown #{opts[:owner]}:#{opts[:group]}")
end
end
end

View File

@ -20,7 +20,7 @@ module VagrantPlugins
su_cmd = machine.config.solaris.su_cmd
machine.communicate.execute(
"#{su_cmd} find '#{opts[:guestpath]}' '(' ! -user #{opts[:owner]} -or ! -group #{opts[:group]} ')' -print0 | " +
"xargs -0 -r chown -v #{opts[:owner]}:#{opts[:group]}")
"xargs -0 -r chown #{opts[:owner]}:#{opts[:group]}")
end
end
end

View File

@ -20,7 +20,7 @@ module VagrantPlugins
su_cmd = machine.config.solaris11.su_cmd
machine.communicate.execute(
"#{su_cmd} '#{opts[:guestpath]}' '(' ! -user #{opts[:owner]} -or ! -group #{opts[:group]} ')' -print0 | " +
"xargs -0 -r chown -v #{opts[:owner]}:#{opts[:group]}")
"xargs -0 -r chown #{opts[:owner]}:#{opts[:group]}")
end
end
end