diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-11-06 13:48:17 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-11-06 13:48:37 +0100 |
| commit | c55763e650b12b96b97ef8630d3a5277c1237069 (patch) | |
| tree | 910fd9615bd3d0fa6bfde0cba383ff8438db0233 /src/lib | |
| parent | c8db1d4012217ec295d2a77581cf0661543dc9af (diff) | |
Try to ignore exceptions thrown from boost::filesystem::is_symlink (#1662).
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/film.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc index 39dfaf5c0..82a00f464 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -180,7 +180,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 (); |
