projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c36c7f4
)
replaced canonicalize_file_name with realpath, which is available.
author
Jesse Chappell
<jesse@essej.net>
Sat, 7 Apr 2007 02:07:59 +0000
(
02:07
+0000)
committer
Jesse 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
patch
|
blob
|
history
diff --git
a/libs/ardour/session_state.cc
b/libs/ardour/session_state.cc
index c2d91c6d86cc32d2f2bb84bcf6acb2cb7a7f8463..c4563ce0e2aa63779b66be2e8e210baddd8e6ba4 100644
(file)
--- 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;
}