another ovdb patch for 2.3
Russ Allbery
rra at stanford.edu
Thu Apr 13 19:11:36 UTC 2000
Kenichi Okada <okada at opaopa.org> writes:
> I use inn-BETA-20000413. ovdb_recover don't work correctly.
> % ovdb_recover
> Segmentation fault
> 52 if(!strcmp(argv[1], "-f")) -----------------***
> 53 ret = DB_RUNRECOVERY;
> 54 else
> 55 ret = ovdb_open_berkeleydb(OV_WRITE, 0);
> 56
Thanks, I've committed this patch:
--- ovdb_recover.c 2000/04/12 03:31:47 1.2
+++ ovdb_recover.c 2000/04/13 19:06:59
@@ -49,7 +49,7 @@
if(ret)
exit(1);
} else {
- if(!strcmp(argv[1], "-f"))
+ if(argc > 1 && !strcmp(argv[1], "-f"))
ret = DB_RUNRECOVERY;
else
ret = ovdb_open_berkeleydb(OV_WRITE, 0);
--
Russ Allbery (rra at stanford.edu) <http://www.eyrie.org/~eagle/>
More information about the inn-workers
mailing list