From db86a57ecee9dfdaabde125fd23a03a590f2e591 Mon Sep 17 00:00:00 2001 From: Gordon Tetlow Date: Wed, 19 May 2010 22:03:45 +0000 Subject: MFC r207981: Fix a bug due to a type conversion from 64 to 32 bits. The side effect of this type conversion is the high bits which were used to indicate if a special character was a literal or special were dropped. As a result, all special character were treated as special, even if they were supposed to be literals. Approved by: mentor (wes@) --- lib/libc/gen/glob.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libc') diff --git a/lib/libc/gen/glob.c b/lib/libc/gen/glob.c index 32af5db2585b..c3d9f08ddc2c 100644 --- a/lib/libc/gen/glob.c +++ b/lib/libc/gen/glob.c @@ -433,9 +433,9 @@ static int glob0(const Char *pattern, glob_t *pglob, size_t *limit) { const Char *qpatnext; - int c, err; + int err; size_t oldpathc; - Char *bufnext, patbuf[MAXPATHLEN]; + Char *bufnext, c, patbuf[MAXPATHLEN]; qpatnext = globtilde(pattern, patbuf, MAXPATHLEN, pglob); oldpathc = pglob->gl_pathc; -- cgit v1.2.3