GNU bug report logs -
#8766
Bug in sha1sum?
Previous Next
Reported by: Theo Band <theo.band <at> greenpeak.com>
Date: Mon, 30 May 2011 17:54:02 UTC
Severity: normal
Tags: notabug
Done: Jim Meyering <jim <at> meyering.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi
I'm not sure, but I think I found a bug in sha1sum. It's easy to
reproduce with any file that contains a backslash (\) in the name:
echo test > test
$ sha1sum test
4e1243bd22c66e76c2ba9eddc1f91394e57f9f83 test
$ mv test 'test\test'
$ sha1sum 'test\test'
\4e1243bd22c66e76c2ba9eddc1f91394e57f9f83 test\\test
I expect the file sha1sum to be the same after renaming the file (a
backslash is prepended to the otherwise correct result).
sha1sum --version
sha1sum (GNU coreutils) 5.97
coreutils-5.97-23.el5_6.4
Kind regards,
Theo Band
--
GreenPeak Technologies
------------------------------------------------------------------------
Phone : +31 30 711 5622 Vinkenburgstraat 2a
E-mail: Theo.Band <at> greenpeak.com 3512AB Utrecht
Skype : Theo.Band-greenpeak The Netherlands
http://www.greenpeak.com
.-. CONFIDENTIALITY: this message, including possible attachment(s),
/v\ constitutes confidential GreenPeak information, intended for the
// \\ use of above named addressee(s) only; any other use or
/( )\ disclosure to anyone other than addressee(s), is prohibited.
^^-^^ Chamber of Commerce NL-3210.56.42.
------------------------------------------------------------------------
This bug report was last modified 14 years and 54 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.