summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-08-01 16:49:11 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-08-01 16:49:11 +0000
commit4db1716cd38dea8919270de00075130d1abba752 (patch)
treea6fb746854a9b77c8360dcbb2af2773af912efaa
parentda7464fa3eb0164a3a4df02bee389db47b2d32cf (diff)
downloadruby-4db1716cd38dea8919270de00075130d1abba752.tar.gz
ruby-4db1716cd38dea8919270de00075130d1abba752.tar.xz
ruby-4db1716cd38dea8919270de00075130d1abba752.zip
* file.c (strrdirsep): removed meaningless code.
* file.c (rb_file_s_expand_path): return to 1.66. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--file.c9
2 files changed, 6 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index ee1a5ff95..76e476d06 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Thu Aug 2 01:29:42 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
+
+ * file.c (strrdirsep): removed meaningless code.
+
+ * file.c (rb_file_s_expand_path): reverted to 1.66.
+
Wed Aug 1 15:42:16 2001 Usaku Nakamura <usa@ruby-lang.org>
* eval.c (ruby_run): avoid VC++ warning.
diff --git a/file.c b/file.c
index 2241efa19..5357163fe 100644
--- a/file.c
+++ b/file.c
@@ -1312,9 +1312,6 @@ strrdirsep(path)
char *path;
{
char *last = NULL;
-#ifdef DOSISH
- if (ISALPHA(path[0]) && path[1] == ':') path += 2;
-#endif
while (*path) {
if (isdirsep(*path)) {
last = path++;
@@ -1438,12 +1435,6 @@ rb_file_s_expand_path(argc, argv)
}
b = ++s;
}
- else {
- p = CharNext(p);
- *p++ = '.';
- *p = '.';
- if (p >= bend) goto toolong;
- }
break;
case '/':
#if defined DOSISH