]> git.ipfire.org Git - thirdparty/util-linux.git/commit
include/optstr: improve optstr parsing
authorKarel Zak <kzak@redhat.com>
Wed, 27 Nov 2024 13:02:25 +0000 (14:02 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 27 Nov 2024 13:10:24 +0000 (14:10 +0100)
commit02defa3e3f0c50171b5621af6426b58cd2c6c343
treebd98bbb343f3dc00bd9c2fc71c541133bd52afc5
parenteb788e20b82d0e1001a30867c71c8bfb2bb86819
include/optstr: improve optstr parsing

* make sure option cannot start with '='
* add ul_optstr_is_valid()
* add regression test

Signed-off-by: Karel Zak <kzak@redhat.com>
include/strutils.h
lib/strutils.c
tests/expected/misc/optstr [new file with mode: 0644]
tests/ts/misc/optstr [new file with mode: 0755]