Skip to content

Commit

Permalink
* file.c (path_check_1): should restore modified path.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
matz committed Jan 9, 2001
1 parent 818b4db commit d110e3f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions ToDo
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand All @@ -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(?)
Expand All @@ -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

Expand Down
6 changes: 5 additions & 1 deletion file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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, '/');
Expand Down Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions version.h
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d110e3f

Please sign in to comment.