这是indexloc提供的服务,不要输入任何密码
Skip to content

Fix -or #842

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/output/stdout.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
Loading