Merge pull request #2191 from Raman148/fix/master/exportssecurity

hosts/bsd: use `sudo` not `su` for NFS export writing
This commit is contained in:
Mitchell Hashimoto 2013-09-15 16:46:53 -07:00
commit cf5d1f40e0
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ module VagrantPlugins
output.split("\n").each do |line|
line.gsub!('"', '\"')
line.gsub!("'", "'\\\\''")
system(%Q[sudo su root -c "echo '#{line}' >> /etc/exports"])
system(%Q[sudo -s -- "echo '#{line}' >> /etc/exports"])
end
# We run restart here instead of "update" just in case nfsd