replaced canonicalize_file_name with realpath, which is available.
authorJesse Chappell <jesse@essej.net>
Sat, 7 Apr 2007 02:07:59 +0000 (02:07 +0000)
committerJesse Chappell <jesse@essej.net>
Sat, 7 Apr 2007 02:07:59 +0000 (02:07 +0000)
git-svn-id: svn://localhost/ardour2/trunk@1677 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/session_state.cc

index c2d91c6d86cc32d2f2bb84bcf6acb2cb7a7f8463..c4563ce0e2aa63779b66be2e8e210baddd8e6ba4 100644 (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;
                        }