]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsfd: (filter): accept '.' used in column names
authorMasatake YAMATO <yamato@redhat.com>
Fri, 9 Sep 2022 15:40:19 +0000 (00:40 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Mon, 12 Sep 2022 12:48:45 +0000 (21:48 +0900)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
misc-utils/lsfd-filter.c

index 6cd4b3de69285b1ca5936b0a2e1542e3a1d16a21..55adb23afd14666726328eafe5117b637a4f9d55 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 */