1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #42984 from al-cheb/al-cheb/create-panic-log-without-readonly

[Windows] cmd/dockerd: create panic.log file without readonly flag
This commit is contained in:
Sebastiaan van Stijn 2021-11-03 08:55:56 +01:00 committed by GitHub
commit c09789c114
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -372,7 +372,7 @@ Loop:
func initPanicFile(path string) error { func initPanicFile(path string) error {
var err 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 { if err != nil {
return err return err
} }