From: Masatake YAMATO Date: Fri, 9 Sep 2022 15:40:19 +0000 (+0900) Subject: lsfd: (filter): accept '.' used in column names X-Git-Tag: v2.39-rc1~527^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=546b26b1017f2b68ce2ef03106a74b0047af7ab6;p=thirdparty%2Futil-linux.git lsfd: (filter): accept '.' used in column names Signed-off-by: Masatake YAMATO --- diff --git a/misc-utils/lsfd-filter.c b/misc-utils/lsfd-filter.c index 6cd4b3de69..55adb23afd 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 */