Download saves to the same tmp file as everyone

stable
Justin Reichardt 2021-12-09 16:44:09 -06:00
parent 1f9d3faa8b
commit 9eb4d9d543
1 changed files with 2 additions and 2 deletions

View File

@ -170,9 +170,9 @@ func copystatichosts(tmpdir, hostsloc string) error {
}
func downloadcontent(downloads []string, tmpdir string) {
fileloc := tmpdir + "rhostsdown"
fileloc := tmpdir + "rhosts"
log.Print("Opening: ", fileloc)
file,err := os.Create(fileloc)
file,err := os.OpenFile(fileloc, os.O_APPEND|os.O_WRONLY, 0644)
if (err != nil) {
log.Fatal(err)
}