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
|
* bignum.c (bigdivrem): t2 might be too big for signed long; do
|
||||||
not use rb_int2big(), but rb_uint2big().
|
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>
|
Mon Jan 8 03:09:58 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* error.c (rb_load_fail): new func to report LoadError.
|
* 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 ??
|
* def Foo::Bar::baz() .. end ??
|
||||||
* I18N (or M17N) script/string/regexp
|
* I18N (or M17N) script/string/regexp
|
||||||
* Fixnum 0 as false ????
|
* 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.
|
* discourage use of Perlish features by giving warnings.
|
||||||
* non confusing in-block local variable (is it possible?)
|
* non confusing in-block local variable (is it possible?)
|
||||||
+ remove scope by block
|
+ remove scope by block
|
||||||
|
@ -24,7 +24,7 @@ Language Spec.
|
||||||
* a +1 to be a+1, not a(+1).
|
* a +1 to be a+1, not a(+1).
|
||||||
* unify == and eql? again
|
* unify == and eql? again
|
||||||
* to_i returns nil if str contains no digit.
|
* to_i returns nil if str contains no digit.
|
||||||
* raise exception by ``
|
* raise exception by `` error
|
||||||
|
|
||||||
Hacking Interpreter
|
Hacking Interpreter
|
||||||
|
|
||||||
|
@ -47,6 +47,7 @@ Hacking Interpreter
|
||||||
Standard Libraries
|
Standard Libraries
|
||||||
|
|
||||||
- Module#define_method which takes a name and a body (block, proc or method).
|
- Module#define_method which takes a name and a body (block, proc or method).
|
||||||
|
- Enume#inject
|
||||||
* Enumerable#sort_by for Schwartzian transformation
|
* Enumerable#sort_by for Schwartzian transformation
|
||||||
* String#scanf(?)
|
* String#scanf(?)
|
||||||
* Object#fmt(?)
|
* Object#fmt(?)
|
||||||
|
@ -69,7 +70,6 @@ Standard Libraries
|
||||||
* or raise ForkException to every thread but fork caller.
|
* or raise ForkException to every thread but fork caller.
|
||||||
* Array#fetch
|
* Array#fetch
|
||||||
* Hash::new{default} or recommend Hash#fetch?
|
* Hash::new{default} or recommend Hash#fetch?
|
||||||
* Enume#inject
|
|
||||||
|
|
||||||
Extension Libraries
|
Extension Libraries
|
||||||
|
|
||||||
|
|
6
file.c
6
file.c
|
@ -2029,6 +2029,7 @@ path_check_1(path)
|
||||||
}
|
}
|
||||||
for (;;) {
|
for (;;) {
|
||||||
if (stat(path, &st) == 0 && (st.st_mode & 002)) {
|
if (stat(path, &st) == 0 && (st.st_mode & 002)) {
|
||||||
|
if (p) *p = '/';
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
s = strrchr(path, '/');
|
s = strrchr(path, '/');
|
||||||
|
@ -2056,7 +2057,10 @@ rb_path_check(path)
|
||||||
|
|
||||||
if (pend) *pend = '\0';
|
if (pend) *pend = '\0';
|
||||||
safe = path_check_1(p);
|
safe = path_check_1(p);
|
||||||
if (!safe) return 0;
|
if (!safe) {
|
||||||
|
if (pend) *pend = sep;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
if (!pend) break;
|
if (!pend) break;
|
||||||
*pend = sep;
|
*pend = sep;
|
||||||
p = pend + 1;
|
p = pend + 1;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#define RUBY_VERSION "1.7.0"
|
#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_VERSION_CODE 170
|
||||||
#define RUBY_RELEASE_CODE 20001230
|
#define RUBY_RELEASE_CODE 20010109
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue