The file format for these files is:
<hash><space><mode><path>
where
<mode> is either a space for text mode, or a * for binary mode.
This works fine in the first line, but second and more lines fail with
*, that is:
Creation works fine:
jak@jak-t14-g3 ~/Downloads> touch x y z
jak@jak-t14-g3 ~/Downloads [1]> gnusha256sum --binary x y z
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 *x
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 *y
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 *z
jak@jak-t14-g3 ~/Downloads> coreutils sha256sum --binary x y z
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 *x
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 *y
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 *z
jak@jak-t14-g3 ~/Downloads> gnusha256sum --binary x y z > hashes
Reading the files with rust-coreutils sha256sum fails
jak@jak-t14-g3 ~/Downloads> coreutils sha256sum -c hashes
x: OK
sha256sum: *y: No such file or directory
*y: FAILED open or read
sha256sum: *z: No such file or directory
*z: FAILED open or read
sha256sum: WARNING: 2 listed files could not be read
jak@jak-t14-g3 ~/Downloads [1]> gnusha256sum -c hashes
x: OK
y: OK
z: OK
** Also affects: coreutils-from (Ubuntu)
Importance: Undecided
Status: New
** Summary changed:
- breaks linu-restricted-modules build
+ rust-coreutils: sha256sum -c does not support * modifier outside of first line
** Changed in: coreutils-from (Ubuntu)
Status: New => Triaged
** Changed in: rust-coreutils (Ubuntu)
Status: New => Triaged
** Bug watch added: github.com/uutils/coreutils/issues #8155
https://github.com/uutils/coreutils/issues/8155
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2113963
Title:
rust-coreutils: sha256sum -c does not support * modifier outside of
first line
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/coreutils-from/+bug/2113963/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs