Skip to content

vmgstool: allow read/write to unencrypted file in encrypted vmgs #1384

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tjones60
Copy link
Contributor

Fixes an issue where vmgstool would return an error when trying to open an encrypted VMGS file without an encryption key, even if the file being accessed was not encrypted.

@tjones60 tjones60 requested a review from a team as a code owner May 20, 2025 16:24
@@ -1135,7 +1127,6 @@ mod tests {
path: impl AsRef<Path>,
open_mode: OpenMode,
encryption_key: Option<&[u8]>,
encrypted_no_key_ok: bool,
) -> Result<Vmgs, Error> {
let file = fs_err::OpenOptions::new()
.read(true)
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have a test covering this case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants