Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261162AbUKGKjG (ORCPT ); Sun, 7 Nov 2004 05:39:06 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261571AbUKGKjG (ORCPT ); Sun, 7 Nov 2004 05:39:06 -0500 Received: from coderock.org ([193.77.147.115]:42422 "EHLO trashy.coderock.org") by vger.kernel.org with ESMTP id S261162AbUKGKjD (ORCPT ); Sun, 7 Nov 2004 05:39:03 -0500 Date: Sun, 7 Nov 2004 11:38:25 +0100 From: Domen Puncer To: lkml Subject: [patch] lib/parser: fix %% parsing Message-ID: <20041107103824.GA3726@masina.coderock.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 686 Lines: 25 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 --- 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/