replaced canonicalize_file_name with realpath, which is available.

git-svn-id: svn://localhost/ardour2/trunk@1677 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Jesse Chappell
2007-04-07 02:07:59 +00:00
parent c36c7f4b94
commit 98cfa3a504

View File

@@ -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;
}