Mercurial > hg > octave-lojdl
changeset 7609:7e6002d15d4d
octave_env::do_base_pathname: handle rooted relativel names
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 19 Mar 2008 16:20:42 -0400 |
parents | 49810341db91 |
children | 60398362938c |
files | liboctave/ChangeLog liboctave/oct-env.cc |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,8 @@ +2008-03-19 John W. Eaton <jwe@octave.org> + + * oct-env.cc (octave_env::do_base_pathname): Also handle rooted + relative filenames. + 2008-03-19 David Bateman <dbateman@free.fr> * Array.cc (assignN): If orig_empty allow assignment like
--- a/liboctave/oct-env.cc +++ b/liboctave/oct-env.cc @@ -299,7 +299,7 @@ std::string octave_env::do_base_pathname (const std::string& s) const { - if (! do_absolute_pathname (s)) + if (! (do_absolute_pathname (s) || do_rooted_relative_pathname (s))) return s; size_t pos = s.find_last_of (file_ops::dir_sep_chars);