--- FreeCAD-0.21.2/src/Gui/PreferencePackManager.cpp.orig 2024-08-04 16:13:24.378811087 +0200 +++ FreeCAD-0.21.2/src/Gui/PreferencePackManager.cpp 2024-08-04 16:24:11.532521492 +0200 @@ -44,7 +44,6 @@ #include // For generating a timestamped filename - using namespace Gui; using namespace xercesc; namespace fs = boost::filesystem; @@ -221,7 +220,7 @@ auto savedPreferencePacksDirectory = fs::path(App::Application::getUserAppDataDir()) / "SavedPreferencePacks"; auto cfgFilename = savedPreferencePacksDirectory / packName / (packName + ".cfg"); - fs::copy_file(path, cfgFilename, fs::copy_option::overwrite_if_exists); + fs::copy_file(path, cfgFilename, fs::copy_options::overwrite_existing); rescan(); }