Syncronize file mode (fixes #20)

This commit is contained in:
Jakob Borg 2014-01-07 16:38:07 +01:00
parent b4db177045
commit 91c102e4fe

View File

@ -121,6 +121,11 @@ func (m *Model) pullFile(name string) error {
return err
}
err = os.Chmod(tmpFilename, os.FileMode(globalFile.Flags&0777))
if err != nil {
return err
}
err = os.Rename(tmpFilename, filename)
if err != nil {
return err