about summary refs log tree commit diff
path: root/posix
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-04-21 04:56:35 +0000
committerUlrich Drepper <drepper@redhat.com>2000-04-21 04:56:35 +0000
commit460e040a3ff405d8fc0de1e380610dd10764e6f3 (patch)
treeb2b77a66479f301688a120ecd5dec0c6ba9f974c /posix
parentd879eb855c93832a11472b07f9d09227e32b2e49 (diff)
downloadglibc-460e040a3ff405d8fc0de1e380610dd10764e6f3.tar.gz
glibc-460e040a3ff405d8fc0de1e380610dd10764e6f3.tar.xz
glibc-460e040a3ff405d8fc0de1e380610dd10764e6f3.zip
Update.
2000-03-08  H.J. Lu  <hjl@gnu.org>

	* posix/regex.c (regex_compile): Correctly handle "\{" when
	the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
Diffstat (limited to 'posix')
-rw-r--r--posix/regex.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/posix/regex.c b/posix/regex.c
index 3e942d41f5..eb5a6b3d47 100644
--- a/posix/regex.c
+++ b/posix/regex.c
@@ -2950,8 +2950,7 @@ regex_compile (pattern, size, syntax, bufp)
               if (!(syntax & RE_INTERVALS)
                      /* If we're at `\{' and it's not the open-interval
                         operator.  */
-                  || ((syntax & RE_INTERVALS) && (syntax & RE_NO_BK_BRACES))
-                  || (p - 2 == pattern  &&  p == pend))
+		  || (syntax & RE_NO_BK_BRACES))
                 goto normal_backslash;
 
             handle_interval: