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 Aug 31, 2024
1 parent 478adeb commit f71bd2c
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 @@ -543,6 +543,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 f71bd2c

Please sign in to comment.