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

Commit c09789c

Browse files
authored
Merge pull request moby#42984 from al-cheb/al-cheb/create-panic-log-without-readonly
[Windows] cmd/dockerd: create panic.log file without readonly flag
2 parents 229bc1e + b865204 commit c09789c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/dockerd/service_windows.go

+1-1
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)