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:
parent
c24cbd1da6
commit
f87c7a9bc9
|
@ -23,7 +23,6 @@ BUG FIXES:
|
||||||
bad locks. [GH-3735]
|
bad locks. [GH-3735]
|
||||||
- commands/package: Don't double included files in package. [GH-3637]
|
- commands/package: Don't double included files in package. [GH-3637]
|
||||||
- guests/linux: Rsync chown ignores symlinks. [GH-3744]
|
- 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
|
- provisioners/shell: Fix shell provisioner config validation when the
|
||||||
`binary` option is set to false [GH-3712]
|
`binary` option is set to false [GH-3712]
|
||||||
- providers/docker: default proxy VM won't use HGFS [GH-3687]
|
- 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]
|
- providers/docker: Port settings expose to host properly. [GH-3723]
|
||||||
- provisioners/puppet: Separate module paths with ';' on Windows. [GH-3731]
|
- provisioners/puppet: Separate module paths with ';' on Windows. [GH-3731]
|
||||||
- synced\_folders\rsync: Copy symlinks as real files. [GH-3734]
|
- 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)
|
## 1.6.1 (May 7, 2014)
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ module VagrantPlugins
|
||||||
def self.rsync_post(machine, opts)
|
def self.rsync_post(machine, opts)
|
||||||
machine.communicate.sudo(
|
machine.communicate.sudo(
|
||||||
"find '#{opts[:guestpath]}' '(' ! -user #{opts[:owner]} -or ! -group #{opts[:group]} ')' -print0 | " +
|
"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
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -25,7 +25,7 @@ module VagrantPlugins
|
||||||
def self.rsync_post(machine, opts)
|
def self.rsync_post(machine, opts)
|
||||||
machine.communicate.sudo(
|
machine.communicate.sudo(
|
||||||
"find '#{opts[:guestpath]}' '(' ! -user #{opts[:owner]} -or ! -group #{opts[:group]} ')' -print0 | " +
|
"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
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -26,7 +26,7 @@ module VagrantPlugins
|
||||||
def self.rsync_post(machine, opts)
|
def self.rsync_post(machine, opts)
|
||||||
machine.communicate.sudo(
|
machine.communicate.sudo(
|
||||||
"find '#{opts[:guestpath]}' '(' ! -user #{opts[:owner]} -or ! -group #{opts[:group]} ')' -print0 | " +
|
"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
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -18,7 +18,7 @@ module VagrantPlugins
|
||||||
|
|
||||||
def self.rsync_post(machine, opts)
|
def self.rsync_post(machine, opts)
|
||||||
machine.communicate.sudo("find '#{opts[:guestpath]}' '(' ! -user #{opts[:owner]} -or ! -group #{opts[:group]} ')' -print0 | " +
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -20,7 +20,7 @@ module VagrantPlugins
|
||||||
su_cmd = machine.config.solaris.su_cmd
|
su_cmd = machine.config.solaris.su_cmd
|
||||||
machine.communicate.execute(
|
machine.communicate.execute(
|
||||||
"#{su_cmd} find '#{opts[:guestpath]}' '(' ! -user #{opts[:owner]} -or ! -group #{opts[:group]} ')' -print0 | " +
|
"#{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
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -20,7 +20,7 @@ module VagrantPlugins
|
||||||
su_cmd = machine.config.solaris11.su_cmd
|
su_cmd = machine.config.solaris11.su_cmd
|
||||||
machine.communicate.execute(
|
machine.communicate.execute(
|
||||||
"#{su_cmd} '#{opts[:guestpath]}' '(' ! -user #{opts[:owner]} -or ! -group #{opts[:group]} ')' -print0 | " +
|
"#{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
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue