diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-02-22 01:25:03 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-02-22 01:25:03 +0100 |
| commit | a45f6245e8cc785fab436c9282fa3d1baf3a8575 (patch) | |
| tree | c6ae82be2319446c35ebad6666f68dbb109f8904 /src/lib/unzipper.cc | |
| parent | 6c3ded5baac385d95ec2cf5e625c6c796c23e318 (diff) | |
| parent | 3ffd0163026be24e5373e0674c3301ed37546e44 (diff) | |
Merge tag 'v2.16.78' into v2.17.xv2.17.12
Diffstat (limited to 'src/lib/unzipper.cc')
| -rw-r--r-- | src/lib/unzipper.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/unzipper.cc b/src/lib/unzipper.cc index 2add8f2a9..f0170e7e0 100644 --- a/src/lib/unzipper.cc +++ b/src/lib/unzipper.cc @@ -39,7 +39,11 @@ using std::string; Unzipper::Unzipper(boost::filesystem::path file) { int error; +#ifdef DCPOMATIC_HAVE_ZIP_RDONLY _zip = zip_open(dcp::filesystem::fix_long_path(file).string().c_str(), ZIP_RDONLY, &error); +#else + _zip = zip_open(dcp::filesystem::fix_long_path(file).string().c_str(), 0, &error); +#endif if (!_zip) { throw FileError("could not open ZIP file", file); } |
