Hi all,

 I found a corious bug in remounting a read-only cdrom mount point in
busybox v1.33.0.
 Possibly the bug stays also in previous and later versions.
 These are the instructions to reproduce the bug in a easy way:

wget
https://github.com/robang74/tinycore-editor/archive/refs/tags/v0.3.8.tar.gz
tar xzf v0.3.8.tar.gz
cd tinycore-editor-0.3.8
tinycore/provides/tcgetdistro.sh

####### configure your qemu ip addresses ########

ifconfig eth0 | grep "inet "
#   inet 10.0.2.15  netmask 255.255.255.0  broadcast 10.0.2.255
echo "
netm=24
myip=10.0.2.15
brip=10.0.2.16
tcip=10.0.2.17
" > make.conf

#################################################

./make.sh qemu-test iso

this command above launch qemu, wait for sshd and open a ssh session in the
console

in ssh: mount -o remount,rw /mnt/sr0; echo $? # error: 32, OK
in qemu: mount -o remount,rw /mnt/sr0; echo $? # error: 32, OK

exit by ssh session, return to the console and do this

ssh [email protected] 'mount -o remount,rw /mnt/sr0; echo $?' #0

This command above returns an unexpected exit status: 0 instead of 32.

ssh [email protected] 'false; echo $?' # error: 1, OK

 This last command is only a counter-proof of the error status.

 I hope this helps,
-- 
Roberto A. Foglietta
+39.349.33.30.697
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to