[Toybox] [PATCH] modprobe: don't stop on empty lines.

enh enh at google.com
Fri May 14 09:11:06 PDT 2021


I don't _think_ that can happen with the .dep files since they're
machine-generated, but the config files can and do contain empty lines
to aid readability.

(Not found on Android, so I haven't tested this, but the code already
even contained a special case for empty lines. I haven't touched the
/proc/modules loop because the kernel definitely isn't going to insert
empty lines, and that code _would_ need to be modified to cope with
empty lines, and since I can't test this, that would be not just
pointless but also irresponsible!)
---
 toys/pending/modprobe.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210514/eeef0b4d/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-modprobe-don-t-stop-on-empty-lines.patch
Type: text/x-patch
Size: 1847 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210514/eeef0b4d/attachment-0002.bin>


More information about the Toybox mailing list