summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorJesse Chappell <jesse@essej.net>2007-04-07 02:07:59 +0000
committerJesse Chappell <jesse@essej.net>2007-04-07 02:07:59 +0000
commit98cfa3a504ba063e82692b6c85293cabf5c9d866 (patch)
treea673f893e3fc3b019d88189e4bedcca85e28d510 /libs
parentc36c7f4b94e4cce75120ae322c0a697c9c494275 (diff)
replaced canonicalize_file_name with realpath, which is available.
git-svn-id: svn://localhost/ardour2/trunk@1677 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/session_state.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc
index c2d91c6d86..c4563ce0e2 100644
--- a/libs/ardour/session_state.cc
+++ b/libs/ardour/session_state.cc
@@ -2689,6 +2689,8 @@ Session::cleanup_sources (Session::cleanup_report& rep)
}
}
+ char tmppath[PATH_MAX+1];
+
for (vector<string*>::iterator x = soundfiles->begin(); x != soundfiles->end(); ++x) {
used = false;
@@ -2696,7 +2698,7 @@ Session::cleanup_sources (Session::cleanup_report& rep)
for (set<string>::iterator i = all_sources.begin(); i != all_sources.end(); ++i) {
- if (strcmp(canonicalize_file_name(spath.c_str()), canonicalize_file_name( (*i).c_str())) == 0) {
+ if (strcmp(realpath(spath.c_str(), tmppath), realpath( (*i).c_str(), tmppath)) == 0) {
used = true;
break;
}