mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* file.c (rb_file_s_expand_path): removed a sludge.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
79862de363
commit
b18b4423c9
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Thu Jan 30 08:27:19 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||||
|
|
||||||
|
* file.c (rb_file_s_expand_path): removed a sludge.
|
||||||
|
|
||||||
Tue Jan 28 04:45:03 2003 Akinori MUSHA <knu@iDaemons.org>
|
Tue Jan 28 04:45:03 2003 Akinori MUSHA <knu@iDaemons.org>
|
||||||
|
|
||||||
* instruby.rb (parse_args), ext/extmk.rb (parse_args): Prepend a
|
* instruby.rb (parse_args), ext/extmk.rb (parse_args): Prepend a
|
||||||
|
|
7
file.c
7
file.c
|
@ -1464,12 +1464,15 @@ rb_file_s_expand_path(argc, argv)
|
||||||
}
|
}
|
||||||
BUFCHECK(strlen(dir) > buflen);
|
BUFCHECK(strlen(dir) > buflen);
|
||||||
strcpy(buf, dir);
|
strcpy(buf, dir);
|
||||||
for (p = buf; p < buf + strlen(dir); p = CharNext(p)) {
|
#ifdef DOSISH
|
||||||
if (isdirsep(*p)) {
|
for (p = buf; *p; p = CharNext(p)) {
|
||||||
|
if (*p == '\\') {
|
||||||
*p = '/';
|
*p = '/';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
p = buf + strlen(dir);
|
p = buf + strlen(dir);
|
||||||
|
#endif
|
||||||
s++;
|
s++;
|
||||||
tainted = 1;
|
tainted = 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue