Skip to content

Commit cb2dcb0

Browse files
authored
Merge pull request containerd#4765 from kevpar/panic-file
Fix Windows service panic file to not be read-only
2 parents ebc0ddb + b2420eb commit cb2dcb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/containerd/command/service_windows.go

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

324324
func initPanicFile(path string) error {
325325
var err error
326-
panicFile, err = os.OpenFile(path, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0)
326+
panicFile, err = os.OpenFile(path, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0644)
327327
if err != nil {
328328
return err
329329
}

0 commit comments

Comments
 (0)