mirror of
https://github.com/vgough/encfs.git
synced 2025-01-29 17:18:34 +01:00
Exit on corrupt config file instead of overwriting it
This is something that should really not happen, it makes sense to have the user examine the situation himself. Behavoir was: 23:00:42 (FileUtils.cpp:379) Archive exception: XML start/end tag mismatch - uniqueIV 23:00:42 (FileUtils.cpp:337) Found config file /tmp/a/ciphertext/.encfs6.xml, but failed to load Creating new encrypted volume. Please choose from one of the following options: ... Now it exits with: 23:13:04 (FileUtils.cpp:337) Found config file /tmp/a/ciphertext/.encfs6.xml, but failed to load - exiting
This commit is contained in:
parent
8efda5b700
commit
cc274dca63
@ -334,8 +334,8 @@ ConfigType readConfig_load(ConfigInfo *nm, const char *path,
|
||||
err.log(_RLWarningChannel);
|
||||
}
|
||||
|
||||
rError(_("Found config file %s, but failed to load"), path);
|
||||
return Config_None;
|
||||
rError(_("Found config file %s, but failed to load - exiting"), path);
|
||||
exit(1);
|
||||
} else {
|
||||
// No load function - must be an unsupported type..
|
||||
config->cfgType = nm->type;
|
||||
|
Loading…
Reference in New Issue
Block a user