mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-02 12:44:01 +02:00
Default permission for atomicupdate should be 0644
This commit is contained in:
@@ -77,7 +77,7 @@ func AtomicWriteFile(path string, data []byte, perm os.FileMode) (err error) {
|
||||
}
|
||||
|
||||
func AtomicUpdateFile(path string, data []byte, perms ...fs.FileMode) (err error) {
|
||||
perm := fs.FileMode(0o666)
|
||||
perm := fs.FileMode(0o644)
|
||||
if len(perms) > 0 {
|
||||
perm = perms[0]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user