Fix #1383: "Save with Sudo" rewrite (#1424)

* Rewrite save with sudo (Fixes #1383)

* Combine overrideFile & overrideFileAsRoot into 1 function
This commit is contained in:
Bonnie
2020-01-03 23:39:12 +01:00
committed by Zachary Yedidia
parent dfb6bc0312
commit c2c0325384
3 changed files with 36 additions and 73 deletions

View File

@@ -39,7 +39,7 @@ func (b *Buffer) Serialize() error {
b.ModTime,
})
return err
})
}, false)
}
func (b *Buffer) Unserialize() error {