Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* file.c (path_check_1): should restore modified path.

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
commit cd1cbfceea8d6b4fae8b3e9956b0c2442b6522d3 1 parent 9f3b8bb
matz authored
Showing with 14 additions and 6 deletions.
  1. +4 −0 ChangeLog
  2. +3 −3 ToDo
  3. +5 −1 file.c
  4. +2 −2 version.h
View
4 ChangeLog
@@ -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.
View
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
View
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;
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.