Skip to content
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

checksum tools stop on first failure (differs from GNU) #4042

Closed
chenxiaolong opened this issue Oct 12, 2022 · 4 comments
Closed

checksum tools stop on first failure (differs from GNU) #4042

chenxiaolong opened this issue Oct 12, 2022 · 4 comments
Labels

Comments

@chenxiaolong
Copy link

With uutils' checksum tools (like sha256sum), the program exits immediately when encountering the first error. This affects both the checksum generation (no args) and validation (-c) modes. This differs from GNU's implementations, which try to process every file before exiting.

For example:

echo 1 > file_1
echo 2 > file_2
sha256sum file_1 file_2 > checksums
rm file_1

echo "GNU output:"
sha256sum -c checksums
echo

echo "uutils output:"
coreutils sha256sum -c checksums
echo

returns:

GNU output:
sha256sum: file_1: No such file or directory
file_1: FAILED open or read
file_2: OK
sha256sum: WARNING: 1 listed file could not be read

uutils output:
sha256sum: failed to open file: No such file or directory

@dmatos2012
Copy link
Contributor

Hi, I would like to give this a try :), if thats not a problem!

@ankush
Copy link

ankush commented Oct 29, 2022

@sylvestre this issue should be closed?

@sylvestre
Copy link
Contributor

I guess @dmatos2012 you agree ? :)

@dmatos2012
Copy link
Contributor

I would agree as well :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants