]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: Don't silently accept an X-mount.idmap with only whitespace
authorChris Webb <chris@arachsys.com>
Mon, 24 Apr 2023 16:14:47 +0000 (17:14 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 25 Apr 2023 09:56:58 +0000 (11:56 +0200)
commit13e267f722f36e5fa7db94f22b6082a6864920e1
tree8a478e182acd5b3f7625756b60ef5cf22d9efafb
parente828630a16c7c31bfbce228d6993c1cff7088152
libmount: Don't silently accept an X-mount.idmap with only whitespace

X-mount.idmap accepts a series of whitespace-separated tokens. We reject
an empty argument but silently accept an argument consisting of whitespace
with no tokens. Test for the empty case more thoroughly.

[kzak@redhat.com: - use skip_blank()]

Signed-off-by: Chris Webb <chris@arachsys.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/hook_idmap.c