From 98cfa3a504ba063e82692b6c85293cabf5c9d866 Mon Sep 17 00:00:00 2001 From: Jesse Chappell Date: Sat, 7 Apr 2007 02:07:59 +0000 Subject: [PATCH] replaced canonicalize_file_name with realpath, which is available. git-svn-id: svn://localhost/ardour2/trunk@1677 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/session_state.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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::iterator x = soundfiles->begin(); x != soundfiles->end(); ++x) { used = false; @@ -2696,7 +2698,7 @@ Session::cleanup_sources (Session::cleanup_report& rep) for (set::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; } -- 2.30.2