diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-01-29 23:28:47 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-01-29 23:28:47 +0000 |
| commit | 8114e42aa1e721a8f51e9f2601edb182eabbec32 (patch) | |
| tree | 5582a1580f62cc35a0ea79b2fbb712b33593e12f | |
| parent | 7a865f040b1e52e0d273273d150fba1354d9b721 (diff) | |
| download | ruby-8114e42aa1e721a8f51e9f2601edb182eabbec32.tar.gz ruby-8114e42aa1e721a8f51e9f2601edb182eabbec32.tar.xz ruby-8114e42aa1e721a8f51e9f2601edb182eabbec32.zip | |
* file.c (rb_file_s_expand_path): removed a sludge.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | file.c | 7 |
2 files changed, 9 insertions, 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> * instruby.rb (parse_args), ext/extmk.rb (parse_args): Prepend a @@ -1464,12 +1464,15 @@ rb_file_s_expand_path(argc, argv) } BUFCHECK(strlen(dir) > buflen); strcpy(buf, dir); - for (p = buf; p < buf + strlen(dir); p = CharNext(p)) { - if (isdirsep(*p)) { +#ifdef DOSISH + for (p = buf; *p; p = CharNext(p)) { + if (*p == '\\') { *p = '/'; } } +#else p = buf + strlen(dir); +#endif s++; tainted = 1; } |
