mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* file.c (path_check_1): should restore modified path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
818b4db148
commit
d110e3f551
4 changed files with 14 additions and 6 deletions
|
@ -14,6 +14,10 @@ Mon Jan 8 21:24:37 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
|
|||
* 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 <decoux@moulon.inra.fr>
|
||||
|
||||
* file.c (path_check_1): should restore modified path.
|
||||
|
||||
Mon Jan 8 03:09:58 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* error.c (rb_load_fail): new func to report LoadError.
|
||||
|
|
6
ToDo
6
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
|
||||
|
||||
|
|
6
file.c
6
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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue