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

To reply to this bug, email your comments to 44308 AT debbugs.gnu.org.

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#44308; Package coreutils. (Thu, 29 Oct 2020 14:52:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to alf <at> orion.it:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Thu, 29 Oct 2020 14:52:02 GMT) Full text and rfc822 format available.

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

From: Alessandro Forghieri <alf <at> orion.it>
To: bug-coreutils <at> gnu.org
Subject: md5sum (and other *sum utils) path dependent output
Date: Thu, 29 Oct 2020 11:41:03 +0100
[Message part 1 (text/plain, inline)]
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

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

[Message part 2 (text/html, inline)]
[alf.vcf (text/x-vcard, attachment)]
[signature.asc (application/pgp-signature, attachment)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#44308; Package coreutils. (Thu, 29 Oct 2020 15:18:01 GMT) Full text and rfc822 format available.

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

From: Alessandro Forghieri <alf <at> orion.it>
To: bug-coreutils <at> gnu.org
Subject: Re: md5sum (and other *sum utils) path dependent output
Date: Thu, 29 Oct 2020 11:43:28 +0100
[Message part 1 (text/plain, inline)]
I forgot to add, sha1sum, sha256sum and I'm guessing (but did not test)
all the other *sum utils behave similarly.


On 10/29/20 11:41 AM, 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
>
> 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

-- 
Alessandro Forghieri
Nouvelle s.r.l.
via Giardini 456/C 41124 Modena  (ITALY)
tel. +39 059 2929338 - Fax +39 059 347606

[Message part 2 (text/html, inline)]
[alf.vcf (text/x-vcard, attachment)]
[signature.asc (application/pgp-signature, attachment)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#44308; Package coreutils. (Thu, 29 Oct 2020 15:23:01 GMT) Full text and rfc822 format available.

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

From: Kamil Dudka <kdudka <at> redhat.com>
To: alf <at> orion.it
Cc: bug-coreutils <at> gnu.org, 44308 <at> debbugs.gnu.org
Subject: Re: bug#44308: md5sum (and other *sum utils) path dependent output
Date: Thu, 29 Oct 2020 16:22:29 +0100
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,






Information forwarded to bug-coreutils <at> gnu.org:
bug#44308; Package coreutils. (Thu, 29 Oct 2020 15:23:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-coreutils <at> gnu.org:
bug#44308; Package coreutils. (Thu, 29 Oct 2020 17:01:02 GMT) Full text and rfc822 format available.

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

From: Alessandro Forghieri <alf <at> orion.it>
To: Kamil Dudka <kdudka <at> redhat.com>
Cc: bug-coreutils <at> gnu.org, 44308 <at> debbugs.gnu.org
Subject: Re: 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)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#44308; Package coreutils. (Thu, 29 Oct 2020 17:01:02 GMT) Full text and rfc822 format available.

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

Previous Next


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