comparison liboctave/file-ops.cc @ 10250:2d47356a7a1a

use gnulib getcwd module
author John W. Eaton <jwe@octave.org>
date Wed, 03 Feb 2010 03:07:06 -0500
parents 025564630c8d
children 2fcc927a8757
comparison
equal deleted inserted replaced
10249:14eba566f9f0 10250:2d47356a7a1a
401 401
402 // All known hosts with resolvepath (e.g. Solaris 7) don't turn 402 // All known hosts with resolvepath (e.g. Solaris 7) don't turn
403 // relative names into absolute ones, so prepend the working 403 // relative names into absolute ones, so prepend the working
404 // directory if the path is not absolute. 404 // directory if the path is not absolute.
405 405
406 std::string absolute_name 406 std::string absolute_name = octave_env::make_absolute (name);
407 = octave_env::make_absolute (name, octave_env::getcwd ());
408 407
409 size_t resolved_size = absolute_name.length (); 408 size_t resolved_size = absolute_name.length ();
410 409
411 while (true) 410 while (true)
412 { 411 {