Closed jonelo closed 2 years ago
fixed in commit https://github.com/jonelo/jacksum/commit/79b15d7b6daa1afb8e885e9430ea731bb9070508
verification:
$ java -jar jacksum-3.2.0-SNAPSHOT.jar -a sha256 -x -c checkfile -V nosummary
OK /lib/systemd/system/system-systemd\x2dcryptsetup.slice
Describe the bug On GNU/Linux filenames are allowed to contain backslashes. On GNU/Linux Jacksum 3.1.0 replaces the backslash for filenames from checkfiles, because it thinks the checkfile was created on Microsoft Windows.
To Reproduce
Expected behavior The backslash shouldn't be replaced with a slash, and it should be possible to verify the integrity of the file.
Screenshots n/a
Environment (please complete the following information):
Additional context The filename is stored correctly in /tmp/checkfile, but the parser replaces the back slash which it shouldn't do.