hosts/linux: escape regular expression for prune NFS exports [GH-2934]

This commit is contained in:
Mitchell Hashimoto 2014-02-24 07:51:06 -08:00
parent ac9e6b2078
commit 7abcea35b8
2 changed files with 4 additions and 1 deletions

View File

@ -88,6 +88,8 @@ BUG FIXES:
- hosts/bsd: Don't invoke shell for NFS sudo calls. [GH-2808]
- hosts/bsd: Sort NFS exports to avoid false validation errors. [GH-2927]
- hosts/gentoo: Look for systemctl in `/usr/bin` [GH-2858]
- hosts/linux: Properly escape regular expression to prune NFS exports,
allowing VMware to work properly. [GH-2934]
- hosts/opensuse: Start NFS server properly. [GH-2923]
- providers/virtualbox: Enabling internal networks by just setting "true"
works properly. [GH-2751]

View File

@ -89,7 +89,8 @@ module VagrantPlugins
def self.nfs_cleanup(id)
return if !File.exist?("/etc/exports")
user = Process.uid
user = Regexp.escape(Process.uid.to_s)
id = Regexp.escape(id.to_s)
# Use sed to just strip out the block of code which was inserted
# by Vagrant