fix: honor system umask for file creates (#12601)

use 0666 os.FileMode to honor system umask
This commit is contained in:
Harshavardhana
2021-07-06 12:54:16 -07:00
committed by GitHub
parent 6503c6ac21
commit 039978640f
4 changed files with 6 additions and 6 deletions

View File

@@ -242,7 +242,7 @@ func formatErasureMigrateV1ToV2(export, version string) error {
if err != nil {
return err
}
return ioutil.WriteFile(formatPath, b, 0644)
return ioutil.WriteFile(formatPath, b, 0666)
}
// Migrates V2 for format.json to V3 (Flat hierarchy for multipart)
@@ -284,7 +284,7 @@ func formatErasureMigrateV2ToV3(export, version string) error {
if err != nil {
return err
}
return ioutil.WriteFile(formatPath, b, 0644)
return ioutil.WriteFile(formatPath, b, 0666)
}
// countErrs - count a specific error.