mirror of
https://github.com/vgough/encfs.git
synced 2024-11-21 23:43:26 +01:00
Allow writing when loading a reverse mount config
- set readOnly to false when uniqueIV is false
This commit is contained in:
parent
105a8acd60
commit
2c541474b5
@ -1542,6 +1542,11 @@ RootPtr initFS(EncFS_Context *ctx, const std::shared_ptr<EncFS_Opts> &opts) {
|
||||
"The configuration loaded is not compatible with --reverse\n");
|
||||
return rootInfo;
|
||||
}
|
||||
/* Reverse mounts are read-only by default (set in main.cpp).
|
||||
* If uniqueIV is off, writing can be allowed, because there
|
||||
* is no header that could be overwritten */
|
||||
if (config->uniqueIV == false)
|
||||
opts->readOnly = false;
|
||||
}
|
||||
|
||||
// first, instanciate the cipher.
|
||||
|
Loading…
Reference in New Issue
Block a user