Date: 28 Feb 2002 05:28:12 +0100 From: Dag-Erling Smorgrav <des@ofug.org> To: obrien@FreeBSD.org Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/contrib/one-true-awk - Imported sources Message-ID: <xzpn0xu8c2r.fsf@flood.ping.uio.no> In-Reply-To: <20020227200513.B20718@dragon.nuxi.com> References: <200202190935.g1J9ZQg95683@freefall.freebsd.org> <20020227101410.B71097@dragon.nuxi.com> <xzpd6yqa50a.fsf@flood.ping.uio.no> <20020227175336.A13894@dragon.nuxi.com> <xzpvgci8g2t.fsf@flood.ping.uio.no> <20020227200513.B20718@dragon.nuxi.com>
index | next in thread | previous in thread | raw e-mail
"David O'Brien" <obrien@FreeBSD.org> writes:
> Can you post the patch?
Index: b.c
===================================================================
RCS file: /home/ncvs/src/contrib/one-true-awk/b.c,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 b.c
--- b.c 19 Feb 2002 09:35:24 -0000 1.1.1.2
+++ b.c 19 Feb 2002 10:03:06 -0000
@@ -587,8 +587,9 @@
dprintf( ("reparse <%s>\n", p) );
lastre = prestr = (uschar *) p; /* prestr points to string to be parsed */
rtok = relex();
+ /* GNU compatibility: an empty regexp matches anything */
if (rtok == '\0')
- FATAL("empty regular expression");
+ return(op2(ALL, NIL, NIL));
np = regexp();
if (rtok != '\0')
FATAL("syntax error in regular expression %s at %s", lastre, prestr);
DES
--
Dag-Erling Smorgrav - des@ofug.org
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpn0xu8c2r.fsf>
