From f0f4dd5e6b6ed5e50d0444a4de3b2a13156edf64 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 6 Oct 2023 02:37:16 +0200 Subject: Use dcp::filesystem to wrap filesystem calls and fix_long_path anything that is passed to read_file() from libcxml. This should fix #2623 and other similar problems. --- src/wx/config_dialog.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/wx/config_dialog.cc') diff --git a/src/wx/config_dialog.cc b/src/wx/config_dialog.cc index fdb7947da..00ae80a4c 100644 --- a/src/wx/config_dialog.cc +++ b/src/wx/config_dialog.cc @@ -27,6 +27,7 @@ #include "static_text.h" #include "lib/constants.h" #include +#include #include @@ -576,7 +577,7 @@ CertificateChainEditor::import_private_key () if (d->ShowModal() == wxID_OK) { try { boost::filesystem::path p (wx_to_std (d->GetPath ())); - if (boost::filesystem::file_size (p) > 8192) { + if (dcp::filesystem::file_size(p) > 8192) { error_dialog ( this, wxString::Format (_("Could not read key file; file is too long (%s)"), std_to_wx (p.string ())) -- cgit v1.2.3