Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

util: Implement workaround for backupwallet to deal with Boost 1.74 regression on copy_file #2669

Merged
merged 1 commit into from
Mar 28, 2023

Conversation

jamescowens
Copy link
Member

@jamescowens jamescowens commented Mar 27, 2023

This PR changes backupwallet to use std::filesystem for backupwallet if the wallet is running against Boost 1.74. Closes #2665.

This is tested and works on Ubuntu 22.04 with Boost 1.74, whereas the current release is confirmed to fail.

@jamescowens jamescowens force-pushed the hotfix branch 2 times, most recently from 69bc5c6 to a545184 Compare March 27, 2023 23:49
…ver = 1.74

Note that Boost 1.74 has a known bug that causes copy_file to misbehave
when use across filesystem boundaries (i.e. if the walletbackups
directory is actually a symlink to somewhere else). This commit
is a workaround to use std::filesystem instead for this specific
operation if the wallet is linked against Boost 1.74.

This can be removed when we eventually migrate to std::filesystem
from boost::filesystem.
Copy link
Member

@div72 div72 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK.

@jamescowens jamescowens merged commit 12e2aa9 into gridcoin-community:hotfix Mar 28, 2023
jamescowens added a commit to jamescowens/Gridcoin-Research that referenced this pull request Apr 5, 2023
Added
 - install: Enhance windows installer - detect running gridcoinresearch(d).exe and ask to close before continuing gridcoin-community#2672 (@jamescowens)
 - gui: Add one minute QTimer to update beacon age/expiration in tooltip gridcoin-community#2671 (@jamescowens)

Changed
none

Removed
none

Fixed
 - util: Implement workaround for backupwallet to deal with Boost 1.74 regression on copy_file gridcoin-community#2669 (@jamescowens)
 - banman: use GetPerformanceCounter instead of GetRandBytes gridcoin-community#2668 (@div72)
@jamescowens jamescowens deleted the fix_backupwallet branch July 21, 2024 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

boost::filesystem::copy_file: Invalid cross-device link when creating backup
2 participants