diff --git a/ChangeLog b/ChangeLog index c41b0e22a2..3faef4be5e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -14,6 +14,10 @@ Mon Jan 8 21:24:37 2001 Yukihiro Matsumoto * bignum.c (bigdivrem): t2 might be too big for signed long; do not use rb_int2big(), but rb_uint2big(). +Mon Jan 8 21:35:10 2001 Guy Decoux + + * file.c (path_check_1): should restore modified path. + Mon Jan 8 03:09:58 2001 Yukihiro Matsumoto * error.c (rb_load_fail): new func to report LoadError. diff --git a/ToDo b/ToDo index 1d12e5869a..b42979f7b3 100644 --- a/ToDo +++ b/ToDo @@ -14,7 +14,7 @@ Language Spec. * def Foo::Bar::baz() .. end ?? * I18N (or M17N) script/string/regexp * Fixnum 0 as false ???? -* discourage use of symbol variable (e.g. $/, etc.) in manual +* discourage use of symbol variables (e.g. $/, etc.) in manual * discourage use of Perlish features by giving warnings. * non confusing in-block local variable (is it possible?) + remove scope by block @@ -24,7 +24,7 @@ Language Spec. * a +1 to be a+1, not a(+1). * unify == and eql? again * to_i returns nil if str contains no digit. -* raise exception by `` +* raise exception by `` error Hacking Interpreter @@ -47,6 +47,7 @@ Hacking Interpreter Standard Libraries - Module#define_method which takes a name and a body (block, proc or method). +- Enume#inject * Enumerable#sort_by for Schwartzian transformation * String#scanf(?) * Object#fmt(?) @@ -69,7 +70,6 @@ Standard Libraries * or raise ForkException to every thread but fork caller. * Array#fetch * Hash::new{default} or recommend Hash#fetch? -* Enume#inject Extension Libraries diff --git a/file.c b/file.c index 98098f9047..db200c6f7e 100644 --- a/file.c +++ b/file.c @@ -2029,6 +2029,7 @@ path_check_1(path) } for (;;) { if (stat(path, &st) == 0 && (st.st_mode & 002)) { + if (p) *p = '/'; return 0; } s = strrchr(path, '/'); @@ -2056,7 +2057,10 @@ rb_path_check(path) if (pend) *pend = '\0'; safe = path_check_1(p); - if (!safe) return 0; + if (!safe) { + if (pend) *pend = sep; + return 0; + } if (!pend) break; *pend = sep; p = pend + 1; diff --git a/version.h b/version.h index 9e30579bbe..5d51878660 100644 --- a/version.h +++ b/version.h @@ -1,4 +1,4 @@ #define RUBY_VERSION "1.7.0" -#define RUBY_RELEASE_DATE "2000-12-30" +#define RUBY_RELEASE_DATE "2001-01-09" #define RUBY_VERSION_CODE 170 -#define RUBY_RELEASE_CODE 20001230 +#define RUBY_RELEASE_CODE 20010109