[patch] lib/parser: fix %% parsing

From: Domen Puncer
Date: Sun Nov 07 2004 - 05:40:32 EST


Hi.

Code looks like it intended to parse "%%" in pattern string as "%".
Fix it, so it really does that.

Compile and run tested.


Signed-off-by: Domen Puncer <domen@xxxxxxxxxxxx>

--- c/lib/parser.c 2004-11-07 11:31:05.000000000 +0100
+++ a/lib/parser.c 2004-11-07 11:31:23.000000000 +0100
@@ -47,6 +47,7 @@ static int match_one(char *s, char *p, s
else if (*p == '%') {
if (*s++ != '%')
return 0;
+ p++;
continue;
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/