[Toybox] [PATCH] modprobe: fix parsing of short lines.
enh
enh at google.com
Thu Jun 3 15:20:03 PDT 2021
The intent here seems to have been to ignore lines with too few
arguments to be valid, but since strtok() returns NULL at the end of the
string, if you only have "verb noun", you'd be falsely rejected.
Since we've kept a count anyway, just check the count.
---
toys/pending/modprobe.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210603/4cb3a87d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-modprobe-fix-parsing-of-short-lines.patch
Type: text/x-patch
Size: 1083 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210603/4cb3a87d/attachment.bin>
More information about the Toybox
mailing list