[Toybox] [PATCH] mount: chomp() trailing '\n' off xrunread() return value

Yi-yo Chiang yochiang at google.com
Tue Aug 23 08:57:04 PDT 2022


losetup -sf prints trailing newline, which confuses the mount command:

  mount /mnt/test.img /mnt/mntpoint
  > mount: '/dev/block/loop48
  > '->'/mnt/test': No such file or directory

Bug: 243494992
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20220823/863df57e/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-mount-chomp-trailing-n-off-xrunread-return-value.patch
Type: text/x-patch
Size: 1456 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20220823/863df57e/attachment.bin>


More information about the Toybox mailing list