bash-custom-action/bash-4.0.17-globstar2.patch

12 lines
384 B
Diff

--- lib/glob/glob.c
+++ lib/glob/glob.c 2009-04-26 17:22:56.000000000 -0400
@@ -942,7 +942,7 @@
char **array;
register unsigned int l;
- array = glob_dir_to_array (directories[i], temp_results, flags);
+ array = glob_dir_to_array ((dflags & GX_ALLDIRS) ? "" : directories[i], temp_results, flags);
l = 0;
while (array[l] != NULL)
++l;