busybox/coreutils
Emanuele Giacomelli 84a1305888 XXXsum: handle binary sums with " " in the path
If a line specifies a binary checksum whose path contains two adjacent
spaces, when checking digests with -c the two spaces will be used as the
separator between the digest and the pathname instead of " *", as shown:

$ echo foo > "/tmp/two  spaces"
$ md5sum -b "/tmp/two  spaces"   # This is GNU md5sum
d3b07384d113edec49eaa6238ad5ff00 */tmp/two  spaces
$ md5sum -b "/tmp/two  spaces" | ./busybox md5sum -c
md5sum: can't open 'spaces': No such file or directory
spaces: FAILED
md5sum: WARNING: 1 of 1 computed checksums did NOT match

function                                             old     new   delta
md5_sha1_sum_main                                    503     496      -7

Signed-off-by: Emanuele Giacomelli <emanuele.giacomelli@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2022-01-08 17:16:00 +01:00
..
libcoreutils
basename.c basename: implement -a and -s SUFFIX 2021-09-09 23:45:13 +02:00
cat.c
chgrp.c *: --help tweaks 2021-06-14 20:47:20 +02:00
chmod.c libbb: eliminate a static data array in bb_mode_string() 2021-09-17 01:18:31 +02:00
chown.c *: --help tweaks 2021-06-14 20:47:20 +02:00
chroot.c
cksum.c crc32: code shrink for !CKSUM config 2021-06-22 10:24:06 +02:00
comm.c
Config.src config system: move some options closer to relevalnt tool subdirectories 2021-10-12 13:23:29 +02:00
cp.c cp: fix build failure with long options disabled 2021-08-15 18:26:56 +02:00
cut.c cut: add toybox-compatible options -O OUTSEP, -D, -F LIST 2021-07-20 16:29:22 +02:00
date.c date,touch: allow timezone offsets in dates 2021-09-17 00:11:30 +02:00
dd.c dd: tweak --help 2021-08-15 23:05:30 +02:00
df.c config system: move some options closer to relevalnt tool subdirectories 2021-10-12 13:23:29 +02:00
dirname.c
dos2unix.c
du.c du: support -b "apparent size" 2021-06-16 17:45:28 +02:00
echo.c echo: add FIXME comment 2021-12-29 07:26:23 +01:00
env.c libbb: factor out fflush_stdout_and_exit(EXIT_SUCCESS) 2022-01-04 23:31:58 +01:00
expand.c
expr.c *: --help tweaks 2021-06-13 01:08:48 +02:00
factor.c
false.c
fold.c
head.c
hostid.c
id_test.sh
id.c *: --help tweaks 2021-06-14 20:47:20 +02:00
install.c
Kbuild.src
link.c
ln.c
logname.c
ls.c libbb: clarify what bb_mode_string() generates 2021-09-17 17:10:38 +02:00
md5_sha1_sum.c XXXsum: handle binary sums with " " in the path 2022-01-08 17:16:00 +01:00
mkdir.c
mkfifo.c
mknod.c
mktemp.c mktemp: add --tmpdir option 2021-10-08 21:02:56 +02:00
mv.c cp,mv: fix -t DIR option 2021-06-25 00:23:29 +02:00
nice.c libbb: factor out fflush_stdout_and_exit(EXIT_SUCCESS) 2022-01-04 23:31:58 +01:00
nl.c
nohup.c
nproc.c nproc: code shrink 2021-06-24 13:47:49 +02:00
od_bloaty.c
od.c
paste.c
printenv.c
printf.c printf: allow 0 as a flag and allow multiple flags 2021-12-17 21:13:26 +01:00
pwd.c
readlink.c libbb: factor out fflush_stdout_and_exit(EXIT_SUCCESS) 2022-01-04 23:31:58 +01:00
realpath.c
rm.c
rmdir.c
seq.c
shred.c shred: with -u, unlink file even if it is zero length 2021-06-20 13:48:21 +02:00
shuf.c libbb: factor out fflush_stdout_and_exit(EXIT_SUCCESS) 2022-01-04 23:31:58 +01:00
sleep.c
sort.c sort: support -h 2022-01-05 12:05:55 +01:00
split.c
stat.c libbb: eliminate a static data array in bb_mode_string() 2021-09-17 01:18:31 +02:00
stty.c
sum.c
sync.c
tac.c
tail.c
tee.c
test_ptr_hack.c
test.c Make const ptr assign as function call in clang 2021-10-09 22:30:45 +02:00
timeout.c timeout: add support for "timeout -k KILL_SECS" 2021-12-17 23:11:17 +01:00
touch.c date,touch: allow timezone offsets in dates 2021-09-17 00:11:30 +02:00
tr.c
true.c
truncate.c
tty.c *: more --help tweaks, mostly expanding ts --help 2021-06-13 03:12:09 +02:00
uname.c libbb: factor out fflush_stdout_and_exit(EXIT_SUCCESS) 2022-01-04 23:31:58 +01:00
uniq.c libbb: factor out fflush_stdout_and_exit(EXIT_SUCCESS) 2022-01-04 23:31:58 +01:00
unlink.c
usleep.c
uudecode.c libbb: factor out fflush_stdout_and_exit(EXIT_SUCCESS) 2022-01-04 23:31:58 +01:00
uuencode.c libbb: factor out fflush_stdout_and_exit(EXIT_SUCCESS) 2022-01-04 23:31:58 +01:00
wc.c
who.c *: more --help tweaks 2021-06-15 10:00:18 +02:00
whoami.c
yes.c *: more --help tweaks, mostly expanding ts --help 2021-06-13 03:12:09 +02:00