diff --git a/CHANGELOG.md b/CHANGELOG.md index aa87cbb7..9df6413d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Added audit logging functionality - Changed - Fix a bug in autocalibration strategy merging, when two files have the same strategy key + - Fix a bug in -or, causing output to not to be written in any case - Fix panic when setting rate to 0 in the interactive console - v2.1.0 diff --git a/pkg/output/stdout.go b/pkg/output/stdout.go index 8386cbc1..3505a64b 100644 --- a/pkg/output/stdout.go +++ b/pkg/output/stdout.go @@ -275,7 +275,7 @@ func (s *Stdoutput) writeToAll(filename string, config *ffuf.Config, res []ffuf. // SaveFile saves the current results to a file of a given type func (s *Stdoutput) SaveFile(filename, format string) error { var err error - if s.config.OutputSkipEmptyFile && len(s.Results) == 0 { + if s.config.OutputSkipEmptyFile && len(s.Results) == 0 && len(s.CurrentResults) == 0 { s.Info("No results and -or defined, output file not written.") return err }