changeset 6183:7a52e59d8136

[project @ 2006-11-21 18:57:53 by jwe]
author jwe
date Tue, 21 Nov 2006 18:57:53 +0000
parents 880235733789
children e96d66e0d634
files liboctave/ChangeLog liboctave/oct-env.cc
diffstat 2 files changed, 4 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/ChangeLog	Mon Nov 20 18:49:45 2006 +0000
+++ b/liboctave/ChangeLog	Tue Nov 21 18:57:53 2006 +0000
@@ -1,3 +1,7 @@
+2006-11-21  John W. Eaton  <jwe@octave.org>
+
+	* oct-env.cc (do_absolute_pathname): Undo previous change.
+
 2006-11-20  John W. Eaton  <jwe@octave.org>
 
 	* oct-env.cc (octave_env::do_absolute_pathname): Also return true
--- a/liboctave/oct-env.cc	Mon Nov 20 18:49:45 2006 +0000
+++ b/liboctave/oct-env.cc	Tue Nov 21 18:57:53 2006 +0000
@@ -258,15 +258,6 @@
     return true;
 #endif
 
-  if (len == 1 && s[0] == '.')
-    return true;
-
-  if (len > 1 && s[0] == '.' && file_ops::is_dir_sep (s[1]))
-    return true;
-
-  if (len > 2 && s[0] == '.' && s[1] == '.' && file_ops::is_dir_sep (s[2]))
-    return true;
-
   return false;
 }