~registry/kmod/master

Viewing all changes in revision 1224.

  • Committer: Lucas De Marchi
  • Date: 2021-02-15 19:53:38 UTC
  • Revision ID: git-v1:01ed9af61e239b40514edf527ac87c79377266ac
libkmod-config: revamp kcmdline parsing into a state machine

The handling of spaces and quotes is becoming hard to maintain. Convert
the parser into a state machine so we can check all the states. This
should make it easier to fix a corner case we have right now:
The kernel also accepts a quote before the module name instead of the
value. But this additional is left for later. This is purely an
algorithm change with no behavior change.

Tested-by: Jessica Yu <jeyu@kernel.org>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: