Hi Jan,
Current architecture: armhf
Qemu: qemu-arm-static
To reproduce the bug I jumped into the buildchroot and typed the following:
I tested it with mcopy version 4.0.18 and 4.0.23, with same results.
sudo chroot buildchroot-target-debian-buster-armhf/rootfs
cd /tmp
mkdosfs -n test -S 512 -C test.img $((512*2*1024*100))
mkdir testfolder
touch testfolder/testtestfile1
touch testfolder/testtestfile1
export MTOOLS_SKIP_CHECK=1
mcopy -v -i test.img -s testfolder/ ::/
> Copying testfolder
sudo chroot buildchroot-host-debian-buster-armhf/rootfs
apt-get install mtools dosfstools
cd /tmp
mkdosfs -n test -S 512 -C test.img $((512*2*1024*100))
mkdir testfolder
touch testfolder/testtestfile1
touch testfolder/testtestfile1
export MTOOLS_SKIP_CHECK=1
mcopy -v -i test.img -s testfolder/ ::/
> Copying testfolder
> Copying testfile2
> Copying testfile1
Greets