diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2013-09-27 22:53:30 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2013-12-02 21:25:47 +1000 |
commit | c3d2b1ea18d71f98a75ad19d09a8b982b879305e (patch) | |
tree | 71e2785d88c4ff52eae5244e2f6a1d3b1f31c8d1 /libs/ardour/session_state.cc | |
parent | 18a59dd7fa65eddeef5eab4d76df2f458aa9f7ad (diff) |
Use PBD::canonical_path instead of ::realpath
This is a previous change that seems to have been lost in master -> windows merge
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r-- | libs/ardour/session_state.cc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index bbd3432205..5c3ffae3cc 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -136,14 +136,7 @@ Session::pre_engine_init (string fullpath) /* discover canonical fullpath */ - char buf[PATH_MAX+1]; - if (!realpath (fullpath.c_str(), buf) && (errno != ENOENT)) { - error << string_compose(_("Could not use path %1 (%2)"), buf, strerror(errno)) << endmsg; - destroy (); - throw failed_constructor(); - } - - _path = string(buf); + _path = canonical_path(fullpath); /* we require _path to end with a dir separator */ |