Implement backup on overwriting migrated file (#5533) #5732
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Your checklist for this pull request
RZ_APIfunction and struct this PR changes.RZ_API).Detailed description
This PR will add a backup-mechanism. This is done to preserve a project before it is migrated, in case the side-effects of a migration are not intended by a user.
Please NOTE:
compare_files-function, used in the integration test.Test plan
To test this:
test/prj/...) into rizin (e.g. via./binrz/rizin/rizin -p ../test/prj/v1-noreturn.rzdbfrom build-dir)project migrated from version X to Y.).v1-noreturn.rzdb_1.BAK)Closing issues
#5533