Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -26,7 +26,7 @@ func DumpToFile(dir string) (string, error) {
|
| 26 | 26 |
if dir != "" {
|
| 27 | 27 |
path := filepath.Join(dir, fmt.Sprintf(stacksLogNameTemplate, strings.ReplaceAll(time.Now().Format(time.RFC3339), ":", ""))) |
| 28 | 28 |
var err error |
| 29 |
- f, err = os.OpenFile(path, os.O_CREATE|os.O_WRONLY, 0666) |
|
| 29 |
+ f, err = os.OpenFile(path, os.O_CREATE|os.O_WRONLY, 0o666) |
|
| 30 | 30 |
if err != nil {
|
| 31 | 31 |
return "", errors.Wrap(err, "failed to open file to write the goroutine stacks") |
| 32 | 32 |
} |