projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae0dc04
)
Check for existing non-legacy configuration needs to be nonzero
author
Art Cancro
<ajc@uncensored.citadel.org>
Wed, 6 May 2015 23:13:08 +0000
(19:13 -0400)
committer
Art Cancro
<ajc@uncensored.citadel.org>
Wed, 6 May 2015 23:13:08 +0000
(19:13 -0400)
citadel/config.c
patch
|
blob
|
history
diff --git
a/citadel/config.c
b/citadel/config.c
index f41533c5b13b858f27bf70d4f929c38211a76319..869b1976f636cf60bba10773b500f1d0100d7694 100644
(file)
--- a/
citadel/config.c
+++ b/
citadel/config.c
@@
-259,7
+259,7
@@
void initialize_config_system(void) {
memset(&lconfig, 0, sizeof(struct legacy_config));
cfp = fopen(file_citadel_config, "rb");
if (cfp != NULL) {
- if (CtdlGetConfigLong("c_config_created_or_migrated")
<=
0) {
+ if (CtdlGetConfigLong("c_config_created_or_migrated")
>
0) {
fprintf(stderr, "Citadel Server found BOTH legacy and new configurations present.\n");
fprintf(stderr, "Exiting to prevent data corruption.\n");
exit(CTDLEXIT_CONFIG);