# HG changeset patch # User jwe # Date 1164048585 0 # Node ID 880235733789069b8b4242ff54e23d3fb993280f # Parent ac4821cdb7408665cb3c85acf46de391df369260 [project @ 2006-11-20 18:49:45 by jwe] diff --git a/liboctave/ChangeLog b/liboctave/ChangeLog --- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,8 @@ +2006-11-20 John W. Eaton + + * oct-env.cc (octave_env::do_absolute_pathname): Also return true + for ".", and names beginning with "./" or "../". + 2006-11-14 Luis F. Ortiz * CMatrix.cc, dMatrix.cc: New tests. diff --git a/liboctave/oct-env.cc b/liboctave/oct-env.cc --- a/liboctave/oct-env.cc +++ b/liboctave/oct-env.cc @@ -258,6 +258,15 @@ 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; }