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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
os.Chmod(tmpfile.Name(), 0644)
|
||||||
|
|
||||||
if err = os.Rename(tmpfile.Name(), path.Join(SettingsDistDir, bpath)); err != nil {
|
if err = os.Rename(tmpfile.Name(), path.Join(SettingsDistDir, bpath)); err != nil {
|
||||||
log.Println("ERROR: Unable to move file:", err)
|
log.Println("ERROR: Unable to move file:", err)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user