]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsfd: (filter): parse "" in filter expression correctly
authorMasatake YAMATO <yamato@redhat.com>
Mon, 4 Apr 2022 18:58:59 +0000 (03:58 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Mon, 4 Apr 2022 19:39:24 +0000 (04:39 +0900)
commitcdbb34d0db5af6a4ebc7eff121eac1c818b9fce6
tree6c21f03b700529aa74108dee13e5808476c18e93
parent97a977cb85a0418a86e5a47b4c6862f225d7fa6b
lsfd: (filter): parse "" in filter expression correctly

The original code cannot convert "" in filter expression to
a token correctly. The following command line exposes the
bug this change fixes:

  # ./lsfd  -o+ENDPOINTS  -Q '(TYPE == "")'
  zsh: IOT instruction  sudo ./lsfd -Q '(TYPE == "")'

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
misc-utils/lsfd-filter.c