From 9eb4d9d54332eb8a65348e40cffda76f09b337db Mon Sep 17 00:00:00 2001 From: Justin Reichardt Date: Thu, 9 Dec 2021 16:44:09 -0600 Subject: [PATCH] Download saves to the same tmp file as everyone --- src/rhosts.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rhosts.go b/src/rhosts.go index fbd6c2f..c8b8d8e 100644 --- a/src/rhosts.go +++ b/src/rhosts.go @@ -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) }