1
0
Fork 0
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:
matz 2000-05-15 06:38:46 +00:00
parent 693599714a
commit b2dc4932bf
7 changed files with 26 additions and 8 deletions

2
dir.c
View file

@ -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);