Skip to content

Commit

Permalink
cmd/dockerd: create panic.log file without readonly flag
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksandr Chebotov <v-aleche@microsoft.com>
(cherry picked from commit b865204)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
Aleksandr Chebotov authored and thaJeztah committed Nov 3, 2021
1 parent 9a309c6 commit 6611c72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/dockerd/service_windows.go
Expand Up @@ -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
}
Expand Down

0 comments on commit 6611c72

Please sign in to comment.