Skip to content

Commit 3458984

Browse files
authored
Merge pull request #4766 from dmcgowan/backport-4765
[release/1.4] Fix Windows service panic file to not be read-only
2 parents 9c24574 + c0f1add commit 3458984

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)