GNU bug report logs - #64390
cksum: cannot --check untagged sums file

Previous Next

Package: coreutils;

Reported by: Christoph Anton Mitterer <calestyo <at> scientia.org>

Date: Sat, 1 Jul 2023 00:02:02 UTC

Severity: normal

Done: Christoph Anton Mitterer <calestyo <at> scientia.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 64390 in the body.
You can then email your comments to 64390 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#64390; Package coreutils. (Sat, 01 Jul 2023 00:02:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Christoph Anton Mitterer <calestyo <at> scientia.org>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Sat, 01 Jul 2023 00:02:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Christoph Anton Mitterer <calestyo <at> scientia.org>
To: bug-coreutils <at> gnu.org
Subject: cksum: cannot --check untagged sums file
Date: Sat, 01 Jul 2023 02:00:11 +0200
Hey.

At least as of 9.1 (on Debian), it seems that cksum cannot --check a
sums file in the untagged style:

$ touch a b
$ cksum -a sha512 --tag * > sums.tagged
$ cksum -a sha512 --untagged * > sums.untagged

$ cat sums.tagged 
SHA512 (a) = cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e
SHA512 (b) = cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e
$ cat sums.untagged 
cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e  a
cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e  b
3423932033d74d924ebe77f281d9694b1fa98103ed38b4634a06759c08b63a4fd96783dfaae8e1acedc53e36129d461a5757ccf3903f5bf64242cd78d305c473  sums.tagged

$ cksum -c sums.tagged 
a: OK
b: OK

$ cksum -c sums.untagged 
cksum: sums.untagged: no properly formatted checksum lines found
$ cksum -c sums.untagged --tag
cksum: sums.untagged: no properly formatted checksum lines found
$ cksum -c sums.untagged --untagged
cksum: sums.untagged: no properly formatted checksum lines found
$ 


Not sure whether it should try to auto-determine the format...
I guess it would be possible, as long as no algorithm name every uses
a-zA-Z0-9 as starting letter.
But I rather tend to think it would be a bad idea to do so.

However, it should be possibl to use --tag or --untagged to specify a
format.


Thanks,
Chris.




Information forwarded to bug-coreutils <at> gnu.org:
bug#64390; Package coreutils. (Sat, 01 Jul 2023 00:13:02 GMT) Full text and rfc822 format available.

Message #8 received at 64390 <at> debbugs.gnu.org (full text, mbox):

From: Christoph Anton Mitterer <calestyo <at> scientia.org>
To: 64390 <at> debbugs.gnu.org
Subject: Re: bug#64390: Acknowledgement (cksum: cannot --check untagged sums
 file)
Date: Sat, 01 Jul 2023 02:11:51 +0200
btw: I haven't check now, but I'd guess all this applies to md5sum and
friends, too.




Information forwarded to bug-coreutils <at> gnu.org:
bug#64390; Package coreutils. (Sat, 01 Jul 2023 07:06:01 GMT) Full text and rfc822 format available.

Message #11 received at 64390 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Christoph Anton Mitterer <calestyo <at> scientia.org>
Cc: 64390 <at> debbugs.gnu.org
Subject: Re: bug#64390: cksum: cannot --check untagged sums file
Date: Sat, 01 Jul 2023 09:05:15 +0200
On Jul 01 2023, Christoph Anton Mitterer wrote:

> $ cksum -c sums.untagged 
> cksum: sums.untagged: no properly formatted checksum lines found

$ cksum -a sha512 -c sums.untagged

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."




Reply sent to Christoph Anton Mitterer <calestyo <at> scientia.org>:
You have taken responsibility. (Sat, 01 Jul 2023 13:38:02 GMT) Full text and rfc822 format available.

Notification sent to Christoph Anton Mitterer <calestyo <at> scientia.org>:
bug acknowledged by developer. (Sat, 01 Jul 2023 13:38:02 GMT) Full text and rfc822 format available.

Message #16 received at 64390-done <at> debbugs.gnu.org (full text, mbox):

From: Christoph Anton Mitterer <calestyo <at> scientia.org>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 64390-done <at> debbugs.gnu.org
Subject: Re: bug#64390: cksum: cannot --check untagged sums file
Date: Sat, 01 Jul 2023 15:37:17 +0200
On Sat, 2023-07-01 at 09:05 +0200, Andreas Schwab wrote:
> $ cksum -a sha512 -c sums.untagged

Haha... I'm so dumb. ^^
Thanks for pointing to the obvious.


Thus closing.

Cheers,
Chris.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 30 Jul 2023 11:24:14 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 319 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.