Merge pull request #42987 from thaJeztah/20.10_backport_create_panic_log_without_readonly

[20.10 backport] [Windows]] cmd/dockerd: create panic.log file without readonly flag
This commit is contained in:
Sebastiaan van Stijn 2021-11-09 22:05:55 +01:00 committed by GitHub
commit c7b97c306a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -372,7 +372,7 @@ Loop:
func initPanicFile(path string) error {
var err error
panicFile, err = os.OpenFile(path, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0)
panicFile, err = os.OpenFile(path, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0o200)
if err != nil {
return err
}