busybox/coreutils
Ron Yorston a84bbc5425 cp,mv: fix -t DIR option
When the '-t DIR' option is used the loop over the remaining
arguments should terminate when a NULL pointer is reached.

function                                             old     new   delta
mv_main                                              585     590      +5
cp_main                                              492     496      +4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 9/0)                 Total: 9 bytes

Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2021-06-25 00:23:29 +02:00
..
libcoreutils
basename.c
cat.c
chgrp.c
chmod.c
chown.c
chroot.c
cksum.c
comm.c
Config.src
cp.c cp,mv: fix -t DIR option 2021-06-25 00:23:29 +02:00
cut.c
date.c
dd.c
df.c
dirname.c
dos2unix.c
du.c
echo.c
env.c
expand.c
expr.c
factor.c
false.c
fold.c
head.c
hostid.c
id_test.sh
id.c
install.c
Kbuild.src
link.c
ln.c
logname.c
ls.c
md5_sha1_sum.c
mkdir.c
mkfifo.c
mknod.c
mktemp.c
mv.c cp,mv: fix -t DIR option 2021-06-25 00:23:29 +02:00
nice.c
nl.c
nohup.c
nproc.c
od_bloaty.c
od.c
paste.c
printenv.c
printf.c
pwd.c
readlink.c
realpath.c
rm.c
rmdir.c
seq.c
shred.c
shuf.c
sleep.c
sort.c
split.c
stat.c
stty.c
sum.c
sync.c
tac.c
tail.c
tee.c
test_ptr_hack.c
test.c
timeout.c
touch.c
tr.c
true.c
truncate.c
tty.c
uname.c
uniq.c
unlink.c
usleep.c
uudecode.c
uuencode.c
wc.c
who.c
whoami.c
yes.c