GNU bug report logs - #44308
md5sum (and other *sum utils) path dependent output

Previous Next

Package: coreutils;

Reported by: alf <at> orion.it

Date: Thu, 29 Oct 2020 14:52:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Alessandro Forghieri <alf <at> orion.it>
To: Kamil Dudka <kdudka <at> redhat.com>
Cc: 44308 <at> debbugs.gnu.org
Subject: bug#44308: md5sum (and other *sum utils) path dependent output
Date: Thu, 29 Oct 2020 18:00:18 +0100
[Message part 1 (text/plain, inline)]
Ok, missed that bit. My bad.

Cheers,


On 10/29/20 4:22 PM, Kamil Dudka wrote:
> On Thursday, October 29, 2020 11:41:03 AM CET Alessandro Forghieri wrote:
>> Greetings.
>>
>> Just stumbled upon this:
>>
>> *# md5sum
>> ./Development/rss/rss/STAGING/BATTITI_del_27_11_2016_-_Battiti_Live:_Arsene_
>> Duevi\\Roberto_Zanisi.mp3 \d41d8cd98f00b204e9800998ecf8427e
>> ./Development/rss/rss/STAGING/BATTITI_del_27_11_2016_-_Battiti_Live:_Arsene_
>> Duevi\\Roberto_Zanisi.mp3*
>>
>> *# cp
>> ./Development/rss/rss/STAGING/BATTITI_del_27_11_2016_-_Battiti_Live:_Arsene_
>> Duevi\\Roberto_Zanisi.mp3 /tmp/qlo
>> # md5sum /tmp/qlo
>> d41d8cd98f00b204e9800998ecf8427e  /tmp/qlo**
>> *
>>
>> IE, in the first instance a '\' character is prepended to the output.
>> The file itself is an empty file, so I guess the file content is
>> irrelevant to the apparent bug.
>>
>> Running coreutils-8.31-6.fc30.x86_64 on Linux 5.6.13-100.fc30.x86_64+debug
> This is the documented behavior of md5sum [1]:
>
>     "Without ‘--zero’, if FILE contains a backslash or newline, the line is
>     started with a backslash, and each problematic character in the file name
>     is escaped with a backslash, making the output unambiguous even in the
>     presence of arbitrary file names."
>
> Kamil
>
> [1] https://www.gnu.org/software/coreutils/manual/html_node/md5sum-invocation.html
>
>> To communicate, cc me, as I am not a ML subscriber.
>>
>> Cheers,
>
>
-- 
Alessandro Forghieri
Nouvelle s.r.l.
via Giardini 456/C 41124 Modena  (ITALY)
tel. +39 059 2929338 - Fax +39 059 347606

[alf.vcf (text/x-vcard, attachment)]
[signature.asc (application/pgp-signature, attachment)]

This bug report was last modified 4 years and 287 days ago.

Previous Next


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