Merge pull request #4765 from kevpar/panic-file

Fix Windows service panic file to not be read-only
This commit is contained in:
Derek McGowan
2020-11-24 17:01:11 -08:00
committed by GitHub

View File

@@ -323,7 +323,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, 0644)
if err != nil {
return err
}