Skip to content

Commit

Permalink
feat(checksum): prevent incorrectly formatted checksums from stopping…
Browse files Browse the repository at this point in the history
… the program
  • Loading branch information
RenjiSann committed Oct 11, 2024
1 parent cf8811d commit c9fa70f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/uucore/src/lib/features/checksum/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,10 @@ fn process_checksum_file(
opts,
) {
Err(UError(e)) => return Err(e.into()),
Err(ImproperlyFormatted) => {
res.bad_format += 1;
continue;
}
Err(Skipped) => continue,
Ok(_) => (),
}
Expand Down

0 comments on commit c9fa70f

Please sign in to comment.