mitchellh/vagrant — pull request #856 by stevehodgkiss (2012-04-02 05:05:26+00:00)
Title: Cleanup any tmp files set by vagrant to fix a permissions issue when switching users.

I ran into a permissions issue where if I changed the user in the Vagrantfile and ran `vagrant reload` an error would be raised when trying to upload a tmp file [1], because it was owned by the previous user.

This pull request avoids that by cleaning up any /tmp/vagrant-* after the network has been configured. I'm not sure how to write a test for this, and I've only tested on ubuntu64.

[1] https://github.com/mitchellh/vagrant/blob/master/lib/vagrant/guest/debian.rb#L38