Default permission for atomicupdate should be 0644
This commit is contained in:
parent
83f25cd361
commit
74c5692b78
@ -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) {
|
func AtomicUpdateFile(path string, data []byte, perms ...fs.FileMode) (err error) {
|
||||||
perm := fs.FileMode(0o666)
|
perm := fs.FileMode(0o644)
|
||||||
if len(perms) > 0 {
|
if len(perms) > 0 {
|
||||||
perm = perms[0]
|
perm = perms[0]
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user