evdist: Chmod temporary files
This commit is contained in:
parent
30a665ff72
commit
498e3c5b63
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user