GNU bug report logs - #17820
sha1sum bug: bad reporting on filenames with "\"

Previous Next

Package: coreutils;

Reported by: Morhold <freebsd-security <at> morhold.ru>

Date: Fri, 20 Jun 2014 17:10:02 UTC

Severity: normal

Tags: notabug

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Pádraig Brady <P <at> draigBrady.com>
To: Morhold <freebsd-security <at> morhold.ru>
Cc: 17820 <at> debbugs.gnu.org
Subject: bug#17820: sha1sum bug: bad reporting on filenames with "\"
Date: Fri, 20 Jun 2014 18:52:31 +0100
tag 17820 notabug
close 17820
stop

On 06/20/2014 11:48 AM, Morhold wrote:
> How to reproduce:
> 
> ~> touch "a\b"
> 
> ~> ls "a\b"
> a\b
> 
> ~> sha1sum "a\b"
> \da39a3ee5e6b4b0d3255bfef95601890afd80709  a\\b
> 
> ~> sha1sum --version
> sha1sum (GNU coreutils) 8.13

This is expected and is there to escape file names containing '\n'
We don't strictly need to also escape file names with '\' in them,
and we considered not doing that in this thread, but decided to leave as is:
  http://lists.gnu.org/archive/html/coreutils/2013-11/msg00017.html

thanks,
Pádraig.




This bug report was last modified 10 years and 340 days ago.

Previous Next


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