Merge pull request #5773 from willdurand/fix-sed

guest/linux: Being able to edit a file does not mean you can write in its parent directory
This commit is contained in:
Mitchell Hashimoto 2015-07-06 15:26:56 -06:00
commit a8580353b1
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ module VagrantPlugins
# Use sed to just strip out the block of code which was inserted
# by Vagrant
system("#{sudo_command}sed -r -e '\\\x01^# VAGRANT-BEGIN:( #{user})? #{id}\x01,\\\x01^# VAGRANT-END:( #{user})? #{id}\x01 d' -ibak /etc/exports")
system("cp /etc/exports $TMPDIR && #{sudo_command}sed -r -e '\\\x01^# VAGRANT-BEGIN:( #{user})? #{id}\x01,\\\x01^# VAGRANT-END:( #{user})? #{id}\x01 d' -ibak $TMPDIR/exports ; cp $TMPDIR/exports /etc/exports")
end
def self.nfs_opts_setup(folders)