mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 19:17:43 +00:00
cksum/hashsum: Move the algo mgmt into a dedicated function
This commit is contained in:
parent
e7898ab32a
commit
c2292a8da6
1 changed files with 1 additions and 0 deletions
|
@ -396,6 +396,7 @@ fn get_file_to_check(
|
|||
}
|
||||
}
|
||||
|
||||
/// Returns a reader to the list of checksums
|
||||
fn get_input_file(filename_input: &OsStr, input_is_stdin: bool) -> UResult<Box<dyn Read>> {
|
||||
if input_is_stdin {
|
||||
Ok(Box::new(stdin())) // Use stdin if "-" is specified
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue