summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
58d762e)
Author: noodles
Date: 2003/10/10 16:57:27
Create num_keydb if it doesn't exist.
*
* Copyright 2002 Project Purple
*
*
* 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 $
} else {
logthing(LOGTHING_ERROR, "Couldn't open num_keydb: %s",
strerror(errno));
} 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);
}
dbconns = malloc(sizeof (DB *) * numdbs);