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:
@@ -50,7 +50,7 @@ func Sync(d string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !tools.IsDir(outDir) {
|
if !tools.IsDir(outDir) {
|
||||||
if err := os.MkdirAll(outDir, 0755); err != nil {
|
if err := os.MkdirAll(outDir, 0755); /* #nosec */ err != nil {
|
||||||
return err
|
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())
|
logger.Log().Errorf("Error writing message %s: %s", m.ID, err.Error())
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user