diff --git a/lib/vagrant/plugin/state_file.rb b/lib/vagrant/plugin/state_file.rb index fc9060849..c80ee658c 100644 --- a/lib/vagrant/plugin/state_file.rb +++ b/lib/vagrant/plugin/state_file.rb @@ -97,8 +97,8 @@ module Vagrant f.binmode f.write(JSON.dump(@data)) f.fsync - f.close f.chmod(0644) + f.close FileUtils.mv(f.path, @path) end end