Mercurial > hg > octave-lyh
diff liboctave/oct-env.cc @ 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 | 845ca0affec0 |
children | b0e7bbe7cd47 |
line wrap: on
line diff
--- 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);