X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/838b6820d59b49881d1cd097aff7e96049a60f9e..7f1c2d9ec737a90d4d216f59ccb8b93f9054c472:/keydb_db3.c diff --git a/keydb_db3.c b/keydb_db3.c index 309a297..b3441b7 100644 --- a/keydb_db3.c +++ b/keydb_db3.c @@ -5,7 +5,7 @@ * * Copyright 2002 Project Purple * - * $Id: keydb_db3.c,v 1.21 2003/10/03 23:02:04 noodles Exp $ + * $Id: keydb_db3.c,v 1.22 2003/10/10 16:57:27 noodles Exp $ */ #include @@ -139,6 +139,15 @@ void initdb(void) } else { logthing(LOGTHING_ERROR, "Couldn't open num_keydb: %s", strerror(errno)); + numdb = fopen(buf, "w"); + if (numdb != NULL) { + fprintf(numdb, "%d", numdbs); + fclose(numdb); + } else { + logthing(LOGTHING_ERROR, + "Couldn't write num_keydb: %s", + strerror(errno)); + } } dbconns = malloc(sizeof (DB *) * numdbs);