]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsfd: (filter) accept % char as a part of column name
authorMasatake YAMATO <yamato@redhat.com>
Fri, 15 Oct 2021 21:08:38 +0000 (06:08 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Thu, 21 Oct 2021 12:06:39 +0000 (21:06 +0900)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
misc-utils/lsfd-filter.c

index a520e7992ee76b53b4c58a18bbba084ed7bcbc2e..16b0cb564522620c8e5a70de178dbd33ca9d1dde 100644 (file)
@@ -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 */