22 lines
851 B
Plaintext
22 lines
851 B
Plaintext
$OpenBSD: patch-lib_glob_glob_c,v 1.2 2009/11/02 18:12:29 naddy Exp $
|
|
|
|
Nested comment.
|
|
|
|
--- lib/glob/glob.c.orig Mon Nov 2 13:27:53 2009
|
|
+++ lib/glob/glob.c Mon Nov 2 13:27:53 2009
|
|
@@ -1021,14 +1021,6 @@ glob_filename (pathname, flags)
|
|
if ((flags & GX_GLOBSTAR) && filename[0] == '*' && filename[1] == '*' && filename[2] == '\0')
|
|
{
|
|
dflags |= GX_ALLDIRS|GX_ADDCURDIR;
|
|
-#if 0
|
|
- /* If we want all directories (dflags & GX_ALLDIRS) and we're not
|
|
- being called recursively as something like `echo **/*.o'
|
|
- ((flags & GX_ALLDIRS) == 0), we want to prevent glob_vector from
|
|
- adding a null directory name to the front of the temp_results
|
|
- array. We turn off ADDCURDIR if not called recursively and
|
|
- dlen == 0 */
|
|
-#endif
|
|
if (directory_len == 0 && (flags & GX_ALLDIRS) == 0)
|
|
dflags &= ~GX_ADDCURDIR;
|
|
}
|