projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'remotes/origin/exportvis' into windows+cc
[ardour.git]
/
libs
/
ardour
/
find_session.cc
diff --git
a/libs/ardour/find_session.cc
b/libs/ardour/find_session.cc
index 7a25b1298bf7cf7bba7d5aec4aab1d3fd7078c2b..501927c42c76462fbee86bde87d40090df7dc584 100644
(file)
--- a/
libs/ardour/find_session.cc
+++ b/
libs/ardour/find_session.cc
@@
-27,6
+27,7
@@
#include <glibmm/miscutils.h>
#include "pbd/compose.h"
#include <glibmm/miscutils.h>
#include "pbd/compose.h"
+#include "pbd/pathexpand.h"
#include "pbd/error.h"
#include "ardour/filename_extensions.h"
#include "pbd/error.h"
#include "ardour/filename_extensions.h"
@@
-44,16
+45,10
@@
int
find_session (string str, string& path, string& snapshot, bool& isnew)
{
struct stat statbuf;
find_session (string str, string& path, string& snapshot, bool& isnew)
{
struct stat statbuf;
- char buf[PATH_MAX+1];
isnew = false;
isnew = false;
- if (!realpath (str.c_str(), buf) && (errno != ENOENT && errno != ENOTDIR)) {
- error << string_compose (_("Could not resolve path: %1 (%2)"), buf, strerror(errno)) << endmsg;
- return -1;
- }
-
- str = buf;
+ str = canonical_path (str);
/* check to see if it exists, and what it is */
/* check to see if it exists, and what it is */