Curious bug in remounting read-only cdrom mount point
Roberto A. Foglietta
roberto.foglietta at gmail.com
Mon Aug 9 18:05:59 UTC 2021
Il giorno lun 9 ago 2021 alle ore 15:55 Lauri Kasanen <cand at gmx.com> ha
scritto:
> Hi,
>
> Your logs show you're running a different binary. correct.txt and
> dropbear.txt run the util-linux mount, and only uncorrect.txt runs
> busybox mount.
>
> So it's not about SSH or the env, but looks like busybox mount just has
> a different (wrong?) return code.
>
Hi Lauri,
you are right the environment is different, so different binaries are
called.
Yes, the problem is related to mount exit status which is wrong.
root at box:~# which mount
/bin/mount
root at box:~# ls -la /bin/mount
lrwxrwxrwx 1 root root 12 Aug 9 17:52 /bin/mount ->
busybox.suid
root at box:~# mount -o remount,rw /mnt/sr0; echo $?
0
Thank you,
--
Roberto A. Foglietta
+39.349.33.30.697
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20210809/26928680/attachment.html>
More information about the busybox
mailing list