diff options
author | 2010-11-21 00:02:30 +0000 | |
---|---|---|
committer | 2010-11-21 00:02:30 +0000 | |
commit | c5a3fab4deebd2cb15b77406ce830b4d13cd5115 (patch) | |
tree | 2926acc741a7dd4912ff48e34552645824f86bfb /lib/libc | |
parent | throw some yields into the pf table code so it doesn't lock up the kernel. (diff) | |
download | wireguard-openbsd-c5a3fab4deebd2cb15b77406ce830b4d13cd5115.tar.xz wireguard-openbsd-c5a3fab4deebd2cb15b77406ce830b4d13cd5115.zip |
the posix regex mistake is here to stay. ok deraadt
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/regex/Makefile.inc | 4 | ||||
-rw-r--r-- | lib/libc/regex/regcomp.c | 14 |
2 files changed, 2 insertions, 16 deletions
diff --git a/lib/libc/regex/Makefile.inc b/lib/libc/regex/Makefile.inc index 9c448585b53..6f9b7733340 100644 --- a/lib/libc/regex/Makefile.inc +++ b/lib/libc/regex/Makefile.inc @@ -1,11 +1,9 @@ -# $OpenBSD: Makefile.inc,v 1.6 2005/04/15 02:07:04 millert Exp $ +# $OpenBSD: Makefile.inc,v 1.7 2010/11/21 00:02:30 tedu Exp $ # @(#)Makefile.inc 8.1 (Berkeley) 6/4/93 # regex sources .PATH: ${LIBCSRCDIR}/regex -CFLAGS+=-DPOSIX_MISTAKE - SRCS+= regcomp.c regerror.c regexec.c regfree.c MAN+= regex.3 re_format.7 diff --git a/lib/libc/regex/regcomp.c b/lib/libc/regex/regcomp.c index 5b632c8b7dd..c94da5ec9a6 100644 --- a/lib/libc/regex/regcomp.c +++ b/lib/libc/regex/regcomp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: regcomp.c,v 1.19 2008/02/23 08:13:07 otto Exp $ */ +/* $OpenBSD: regcomp.c,v 1.20 2010/11/21 00:02:30 tedu Exp $ */ /*- * Copyright (c) 1992, 1993, 1994 Henry Spencer. * Copyright (c) 1992, 1993, 1994 @@ -319,18 +319,6 @@ p_ere_exp(struct parse *p) EMIT(ORPAREN, subno); MUSTEAT(')', REG_EPAREN); break; -#ifndef POSIX_MISTAKE - case ')': /* happens only if no current unmatched ( */ - /* - * You may ask, why the ifndef? Because I didn't notice - * this until slightly too late for 1003.2, and none of the - * other 1003.2 regular-expression reviewers noticed it at - * all. So an unmatched ) is legal POSIX, at least until - * we can get it fixed. - */ - SETERROR(REG_EPAREN); - break; -#endif case '^': EMIT(OBOL, 0); p->g->iflags |= USEBOL; |