projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
e6c828c
)
Don't crash if history items are inaccessible.
author
Carl Hetherington
<cth@carlh.net>
Tue, 2 Jul 2019 21:56:56 +0000
(22:56 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 2 Jul 2019 21:56:56 +0000
(22:56 +0100)
src/lib/config.cc
patch
|
blob
|
history
diff --git
a/src/lib/config.cc
b/src/lib/config.cc
index a7a45708193133d5a12bf887eeacdb89f2dcfa2c..1d2ef1e40d25f343c8135cfc88f7eb915f7c9f3e 100644
(file)
--- a/
src/lib/config.cc
+++ b/
src/lib/config.cc
@@
-1230,8
+1230,12
@@
Config::clean_history_internal (vector<boost::filesystem::path>& h)
vector<boost::filesystem::path> old = h;
h.clear ();
BOOST_FOREACH (boost::filesystem::path i, old) {
vector<boost::filesystem::path> old = h;
h.clear ();
BOOST_FOREACH (boost::filesystem::path i, old) {
- if (boost::filesystem::is_directory(i)) {
- h.push_back (i);
+ try {
+ if (boost::filesystem::is_directory(i)) {
+ h.push_back (i);
+ }
+ } catch (...) {
+ /* We couldn't find out if it's a directory for some reason; just ignore it */
}
}
}
}
}
}