GNU bug report logs - #66519
b2sum, md5sum sha*sum etc broken on filenames including backslash

Previous Next

Package: coreutils;

Reported by: "Simon Richter M. Sc." <simon.richter <at> uni-paderborn.de>

Date: Fri, 13 Oct 2023 13:24:01 UTC

Severity: normal

Tags: notabug

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


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

From: "Simon Richter M. Sc." <simon.richter <at> uni-paderborn.de>
To: bug-coreutils <at> gnu.org
Subject: b2sum, md5sum sha*sum etc broken on filenames including backslash
Date: Fri, 13 Oct 2023 14:31:18 +0200
I noticed some broken checksums with leading backslash and wrong 
filenames in my checksum files because the original filenames contained 
a backslash.

Way to reproduce:
% touch test\\test.file
% b2sum test\\test.file

expected output:
786a02f742015903c6c6fd852552d272912f4740e15847618a86e217f71f5419d25e1031afee585313896444934eb04b903a685b1448b755d56f701afe9be2ce 
 test\test.file

real broken output:
\786a02f742015903c6c6fd852552d272912f4740e15847618a86e217f71f5419d25e1031afee585313896444934eb04b903a685b1448b755d56f701afe9be2ce 
 test\\test.file


Tested with coreutils 9.3 and coreutils 9.4 and LC_ALL=C
Btw any chance we get b3sum included in coreutils?





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

Previous Next


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