Being able to edit a file does not mean you can write in its parent directory
Being able to edit a file does not mean you can write in its parent directory

Interactive `sed` needs write permission on the file itself. However, it
may create a backup file, which leads to the fact that the directory
where the file is located must be writable as well. That is a side
effect because this directory does not need to be writable.

This patch fixes this side effect by editing the file in `/tmp`, and
replaces it right after.

mitchellh/vagrant,genome21/vagrant,justincampbell/vagrant,stephancom/vagrant,genome21/vagrant,mwrock/vagrant,gpkfr/vagrant,jean/vagrant,fnewberg/vagrant,vamegh/vagrant,bdwyertech/vagrant,wangfakang/vagrant,krig/vagrant,stephancom/vagrant,carlosefr/vagrant,vamegh/vagrant,benh57/vagrant,mkuzmin/vagrant,denisbr/vagrant,dharmab/vagrant,gitebra/vagrant,dustymabe/vagrant,sni/vagrant,sni/vagrant,mwarren/vagrant,bryson/vagrant,Chhed13/vagrant,blueyed/vagrant,jhoblitt/vagrant,ArloL/vagrant,patrys/vagrant,modulexcite/vagrant,muhanadra/vagrant,bdwyertech/vagrant,lonniev/vagrant,doy/vagrant,gbarberi/vagrant,signed8bit/vagrant,loren-osborn/vagrant,teotihuacanada/vagrant,bryson/vagrant,invernizzi-at-google/vagrant,kalabiyau/vagrant,darkn3rd/vagrant,nickryand/vagrant,tbarrongh/vagrant,senglin/vagrant,johntron/vagrant,darkn3rd/vagrant,PatrickLang/vagrant,nickryand/vagrant,invernizzi-at-google/vagrant,marxarelli/vagrant,mitchellh/vagrant,chrisvire/vagrant,bshurts/vagrant,invernizzi-at-google/vagrant,cgvarela/vagrant,kamigerami/vagrant,aneeshusa/vagrant,philoserf/vagrant,tbriggs-curse/vagrant,wangfakang/vagrant,janek-warchol/vagrant,tbriggs-curse/vagrant,carlosefr/vagrant,mwrock/vagrant,aneeshusa/vagrant,TheBigBear/vagrant,blueyed/vagrant,mwarren/vagrant,dharmab/vagrant,jkburges/vagrant,dustymabe/vagrant,sax/vagrant,gpkfr/vagrant,bheuvel/vagrant,apertoso/vagrant,philoserf/vagrant,tjanez/vagrant,bdwyertech/vagrant,muhanadra/vagrant,sax/vagrant,kamazee/vagrant,dhoer/vagrant,bshurts/vagrant,vamegh/vagrant,dustymabe/vagrant,denisbr/vagrant,darkn3rd/vagrant,genome21/vagrant,lukebakken/vagrant,jberends/vagrant,modulexcite/vagrant,PatOShea/vagrant,taliesins/vagrant,Chhunlong/vagrant,lukebakken/vagrant,mwarren/vagrant,marxarelli/vagrant,pwnall/vagrant,chrisroberts/vagrant,crashlytics/vagrant,mpoeter/vagrant,justincampbell/vagrant,Chhunlong/vagrant,patrys/vagrant,ArloL/vagrant,lonniev/vagrant,chrisroberts/vagrant,taliesins/vagrant,mkuzmin/vagrant,carlosefr/vagrant,mpoeter/vagrant,PatOShea/vagrant,tschortsch/vagrant,invernizzi-at-google/vagrant,zsjohny/vagrant,gpkfr/vagrant,Avira/vagrant,Sgoettschkes/vagrant,patrys/vagrant,krig/vagrant,bheuvel/vagrant,Endika/vagrant,petems/vagrant,vamegh/vagrant,kalabiyau/vagrant,crashlytics/vagrant,aaam/vagrant,marxarelli/vagrant,Endika/vagrant,sni/vagrant,ArloL/vagrant,muhanadra/vagrant,senglin/vagrant,jhoblitt/vagrant,dhoer/vagrant,Endika/vagrant,h4ck3rm1k3/vagrant,benizi/vagrant,wangfakang/vagrant,gitebra/vagrant,lukebakken/vagrant,jtopper/vagrant,sax/vagrant,tbriggs-curse/vagrant,sax/vagrant,benizi/vagrant,jtopper/vagrant,modulexcite/vagrant,lonniev/vagrant,loren-osborn/vagrant,justincampbell/vagrant,chrisvire/vagrant,jfchevrette/vagrant,Sgoettschkes/vagrant,chrisvire/vagrant,carlosefr/vagrant,janek-warchol/vagrant,Avira/vagrant,mkuzmin/vagrant,denisbr/vagrant,bshurts/vagrant,benh57/vagrant,tjanez/vagrant,Chhed13/vagrant,dustymabe/vagrant,sni/vagrant,jberends/vagrant,stephancom/vagrant,dhoer/vagrant,jfchevrette/vagrant,zsjohny/vagrant,benizi/vagrant,denisbr/vagrant,modulexcite/vagrant,aaam/vagrant,kamigerami/vagrant,tomfanning/vagrant,philoserf/vagrant,TheBigBear/vagrant,ArloL/vagrant,benizi/vagrant,aaam/vagrant,jhoblitt/vagrant,PatOShea/vagrant,jmanero/vagrant,mitchellh/vagrant,jfchevrette/vagrant,jkburges/vagrant,jtopper/vagrant,signed8bit/vagrant,cgvarela/vagrant,mwarren/vagrant,senglin/vagrant,h4ck3rm1k3/vagrant,gitebra/vagrant,nickryand/vagrant,PatrickLang/vagrant,teotihuacanada/vagrant,gbarberi/vagrant,mkuzmin/vagrant,mpoeter/vagrant,tbarrongh/vagrant,Avira/vagrant,tschortsch/vagrant,crashlytics/vagrant,gbarberi/vagrant,h4ck3rm1k3/vagrant,TheBigBear/vagrant,kamazee/vagrant,myrjola/vagrant,muhanadra/vagrant,mpoeter/vagrant,janek-warchol/vagrant,gpkfr/vagrant,bheuvel/vagrant,fnewberg/vagrant,doy/vagrant,aneeshusa/vagrant,kamigerami/vagrant,kalabiyau/vagrant,PatOShea/vagrant,bheuvel/vagrant,chrisvire/vagrant,kamigerami/vagrant,Avira/vagrant,gbarberi/vagrant,TheBigBear/vagrant,tschortsch/vagrant,kamazee/vagrant,myrjola/vagrant,jean/vagrant,teotihuacanada/vagrant,jmanero/vagrant,apertoso/vagrant,wangfakang/vagrant,ianmiell/vagrant,jmanero/vagrant,myrjola/vagrant,kalabiyau/vagrant,dhoer/vagrant,johntron/vagrant,johntron/vagrant,PatrickLang/vagrant,benh57/vagrant,crashlytics/vagrant,bryson/vagrant,marxarelli/vagrant,genome21/vagrant,tomfanning/vagrant,taliesins/vagrant,Chhunlong/vagrant,jkburges/vagrant,mwrock/vagrant,cgvarela/vagrant,patrys/vagrant,pwnall/vagrant,lonniev/vagrant,jkburges/vagrant,bryson/vagrant,aaam/vagrant,jean/vagrant,gitebra/vagrant,krig/vagrant,h4ck3rm1k3/vagrant,fnewberg/vagrant,senglin/vagrant,blueyed/vagrant,jmanero/vagrant,kamazee/vagrant,philoserf/vagrant,petems/vagrant,dharmab/vagrant,cgvarela/vagrant,krig/vagrant,dharmab/vagrant,loren-osborn/vagrant,apertoso/vagrant,PatrickLang/vagrant,chrisroberts/vagrant,jberends/vagrant,tschortsch/vagrant,johntron/vagrant,bdwyertech/vagrant,doy/vagrant,jhoblitt/vagrant,ianmiell/vagrant,fnewberg/vagrant,tbarrongh/vagrant,Chhunlong/vagrant,teotihuacanada/vagrant,stephancom/vagrant,pwnall/vagrant,tjanez/vagrant,chrisroberts/vagrant,Chhed13/vagrant,zsjohny/vagrant,mitchellh/vagrant,zsjohny/vagrant,bshurts/vagrant,petems/vagrant,nickryand/vagrant,tbriggs-curse/vagrant,jean/vagrant,jberends/vagrant,Sgoettschkes/vagrant,ianmiell/vagrant,lukebakken/vagrant,myrjola/vagrant,Endika/vagrant,jtopper/vagrant,janek-warchol/vagrant,tbarrongh/vagrant,signed8bit/vagrant,tomfanning/vagrant,apertoso/vagrant,benh57/vagrant,tjanez/vagrant,blueyed/vagrant,darkn3rd/vagrant,ianmiell/vagrant,loren-osborn/vagrant,Sgoettschkes/vagrant,justincampbell/vagrant,signed8bit/vagrant,jfchevrette/vagrant,doy/vagrant,mwrock/vagrant,taliesins/vagrant,tomfanning/vagrant,aneeshusa/vagrant,petems/vagrant,Chhed13/vagrant,pwnall/vagrant