mirror of
https://github.com/NixOS/nix
synced 2025-07-04 07:11:47 +02:00
Update src/libstore/local-store.cc
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
This commit is contained in:
parent
78e2f931d0
commit
984b01924a
1 changed files with 1 additions and 1 deletions
|
@ -496,7 +496,7 @@ int LocalStore::getSchema()
|
||||||
void LocalStore::openDB(State & state, bool create)
|
void LocalStore::openDB(State & state, bool create)
|
||||||
{
|
{
|
||||||
if (create && readOnly) {
|
if (create && readOnly) {
|
||||||
throw Error("unable to create database while in read-only mode");
|
throw Error("cannot create database while in read-only mode");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (access(dbDir.c_str(), R_OK | (readOnly ? 0 : W_OK)))
|
if (access(dbDir.c_str(), R_OK | (readOnly ? 0 : W_OK)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue