mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* dir.c (glob_helper): preserve raw order for **.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c7b5c0489b
commit
43e4a50015
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
|||
Mon Aug 18 11:23:11 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* dir.c (glob_helper): preserve raw order for **.
|
||||
|
||||
Sun Aug 17 23:39:55 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ext/openssl/extconf.rb (HAVE_VA_ARGS_MACRO): need to compile.
|
||||
|
|
7
dir.c
7
dir.c
|
@ -731,7 +731,7 @@ glob_helper(path, sub, flags, func, arg)
|
|||
struct d_link {
|
||||
char *path;
|
||||
struct d_link *next;
|
||||
} *tmp, *link = 0;
|
||||
} *tmp, *link, **tail = &link;
|
||||
|
||||
base = extract_path(path, p);
|
||||
if (path == p) dir = ".";
|
||||
|
@ -808,12 +808,13 @@ glob_helper(path, sub, flags, func, arg)
|
|||
}
|
||||
tmp = ALLOC(struct d_link);
|
||||
tmp->path = buf;
|
||||
tmp->next = link;
|
||||
link = tmp;
|
||||
*tail = tmp;
|
||||
tail = &tmp->next;
|
||||
}
|
||||
}
|
||||
closedir(dirp);
|
||||
finalize:
|
||||
*tail = 0;
|
||||
free(base);
|
||||
free(magic);
|
||||
if (link) {
|
||||
|
|
Loading…
Reference in a new issue