Subject: CVS commit: basesrc/lib/libc/gen
To: None <source-changes@netbsd.org>
From: Christos Zoulas <christos@netbsd.org>
List: source-changes
Date: 09/09/2001 01:39:22
Module Name:	basesrc
Committed By:	christos
Date:		Sat Sep  8 22:39:22 UTC 2001

Modified Files:
	basesrc/lib/libc/gen: __glob13.c

Log Message:
Selected fixes from Brian Ginsbach <ginsbach@cray.com>, modified by me.
- handle globbing of patterns that contain unmatched braces. Globbing
  a pattern "foo{" in a directory that contains "foo{" now works.
- check for MAXPATHLEN overflows during filename generation (security problem).
- Posix/XOpen fixes to always return GLOB_ABORTED when a directory open fails
  or when a file access fails.
- pathc was not initialized to 0 in one case.
Also
- rename err to error, so that it does not conflict with the libc function.


To generate a diff of this commit:
cvs rdiff -r1.21 -r1.22 basesrc/lib/libc/gen/__glob13.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.