]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: treat comma as terminator in mnt_match_options()
authorKarel Zak <kzak@redhat.com>
Tue, 28 Feb 2023 10:56:44 +0000 (11:56 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 28 Feb 2023 10:56:44 +0000 (11:56 +0100)
commitffe45d3bfba9f94e1b3ceb8bf5da4697208286a5
treeb6f50ad1b1d53651799c82d5411a129cd7db7a85
parent00ad6f2c7c789fb6fe7874f754a39ef3e6ed4d8f
libmount: treat comma as terminator in mnt_match_options()

An alone "no" in the pattern is interpreted as an error; it should be also
valid in case the keyword is followed by a comma, e.g.

mnt_match_options("bla", "no,,");

Suggested-by: Sören Tempel <soeren@soeren-tempel.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/optstr.c