evdist: Chmod temporary files

This commit is contained in:
nemunaire 2022-06-08 10:00:21 +02:00
parent 30a665ff72
commit 498e3c5b63
1 changed files with 2 additions and 0 deletions

View File

@ -150,6 +150,8 @@ func (l *distList) treat(raw_path string) {
return
}
os.Chmod(tmpfile.Name(), 0644)
if err = os.Rename(tmpfile.Name(), path.Join(SettingsDistDir, bpath)); err != nil {
log.Println("ERROR: Unable to move file:", err)
return