Try to ignore exceptions thrown from boost::filesystem::is_symlink (#1662).
[dcpomatic.git] / src / lib / film.cc
index 0d2adce4ab732e776babf7fc5af5625f46912f11..167ffaf4e41771263fb12ee1e9427d17ba0318a8 100644 (file)
@@ -177,7 +177,8 @@ Film::Film (optional<boost::filesystem::path> dir)
                boost::filesystem::path result;
                for (boost::filesystem::path::iterator i = p.begin(); i != p.end(); ++i) {
                        if (*i == "..") {
-                               if (boost::filesystem::is_symlink (result) || result.filename() == "..") {
+                               boost::system::error_code ec;
+                               if (boost::filesystem::is_symlink(result, ec) || result.filename() == "..") {
                                        result /= *i;
                                } else {
                                        result = result.parent_path ();