mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
2000-05-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
693599714a
commit
b2dc4932bf
7 changed files with 26 additions and 8 deletions
2
dir.c
2
dir.c
|
@ -589,7 +589,7 @@ glob(path, func, arg)
|
|||
else dir = base;
|
||||
|
||||
magic = extract_elem(p);
|
||||
if (strcmp(magic, "**") == 0) {
|
||||
if (m && strcmp(magic, "**") == 0) {
|
||||
recursive = 1;
|
||||
buf = ALLOC_N(char, strlen(base)+strlen(m)+3);
|
||||
sprintf(buf, "%s%s%s", base, (*base)?"":".", m);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue