1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-08-13 20:04:49 +02:00

Ignore gosec warnings for dump folder / file permissions

This commit is contained in:
Ralph Slooten
2025-03-01 23:11:24 +13:00
parent 7dfdf54e97
commit 3c2e227d32

View File

@@ -50,7 +50,7 @@ func Sync(d string) error {
}
if !tools.IsDir(outDir) {
if err := os.MkdirAll(outDir, 0755); err != nil {
if err := os.MkdirAll(outDir, 0755); /* #nosec */ err != nil {
return err
}
}
@@ -149,7 +149,7 @@ func saveMessages() error {
}
}
if err := os.WriteFile(out, b, 0644); err != nil {
if err := os.WriteFile(out, b, 0644); /* #nosec */ err != nil {
logger.Log().Errorf("Error writing message %s: %s", m.ID, err.Error())
continue
}