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

check command should be read-only #104

Closed
jeffallen opened this issue Jun 20, 2018 · 1 comment
Closed

check command should be read-only #104

jeffallen opened this issue Jun 20, 2018 · 1 comment

Comments

@jeffallen
Copy link
Contributor

I tried taking a backup of a DB file, and I made it permissions 0400 so that it could not be accidentally modified later. I wanted to run "bolt check" on it to be certain it was a good backup. I couldn't because of the permissions. I changed it to u+w and then check worked.

https://github.com/coreos/bbolt/blob/af9db2027c98c61ecd8e17caa5bd265792b9b9a2/cmd/bolt/main.go#L202

The check command should give Open a bbolt.Options with ReadOnly == true, then checking read-only files would work.

@ahrtr
Copy link
Member

ahrtr commented Jan 29, 2023

Resolved in #365.

The fix will be included in v1.3.7

@ahrtr ahrtr closed this as completed Jan 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants