Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit b865204

Browse files
author
Aleksandr Chebotov
committed
cmd/dockerd: create panic.log file without readonly flag
Signed-off-by: Aleksandr Chebotov <[email protected]>
1 parent 229bc1e commit b865204

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/dockerd/service_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ Loop:
372372

373373
func initPanicFile(path string) error {
374374
var err error
375-
panicFile, err = os.OpenFile(path, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0)
375+
panicFile, err = os.OpenFile(path, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0o200)
376376
if err != nil {
377377
return err
378378
}

0 commit comments

Comments
 (0)