From: Masatake YAMATO Date: Fri, 15 Oct 2021 21:08:38 +0000 (+0900) Subject: lsfd: (filter) accept % char as a part of column name X-Git-Tag: v2.38-rc1~144^2~39 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e095a2d6fb70e4712d0810a3e5399944f1e9d1ee;p=thirdparty%2Futil-linux.git lsfd: (filter) accept % char as a part of column name Signed-off-by: Masatake YAMATO --- diff --git a/misc-utils/lsfd-filter.c b/misc-utils/lsfd-filter.c index a520e7992e..16b0cb5645 100644 --- a/misc-utils/lsfd-filter.c +++ b/misc-utils/lsfd-filter.c @@ -21,7 +21,7 @@ /* * Definitions */ -#define COL_HEADER_EXTRA_CHARS ":-_" /* ??? */ +#define COL_HEADER_EXTRA_CHARS ":-_%" /* ??? */ #define GOT_ERROR(PARSERorFILTER)(*((PARSERorFILTER)->errmsg)) /* @@ -29,7 +29,7 @@ */ enum token_type { - TOKEN_NAME, /* [A-Za-z_][-_:A-Za-z0-9]* */ + TOKEN_NAME, /* [A-Za-z_][-_:%A-Za-z0-9]* */ TOKEN_STR, /* "...", '...' */ TOKEN_DEC, /* [1-9][0-9]+, NOTE: negative value is no dealt. */ TOKEN_HEX, /* 0x[0-9a-f]+ not implemented */