Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 May 2010 22:03:46 +0000 (UTC)
From:      Gordon Tetlow <gordon@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r208318 - stable/8/lib/libc/gen
Message-ID:  <201005192203.o4JM3kUV001525@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gordon
Date: Wed May 19 22:03:45 2010
New Revision: 208318
URL: http://svn.freebsd.org/changeset/base/208318

Log:
  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@)

Modified:
  stable/8/lib/libc/gen/glob.c
Directory Properties:
  stable/8/lib/libc/   (props changed)
  stable/8/lib/libc/stdtime/   (props changed)

Modified: stable/8/lib/libc/gen/glob.c
==============================================================================
--- stable/8/lib/libc/gen/glob.c	Wed May 19 21:12:10 2010	(r208317)
+++ stable/8/lib/libc/gen/glob.c	Wed May 19 22:03:45 2010	(r208318)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005192203.o4JM3kUV001525>