3187b3280f
db2 code using hints from debian's fix. makevpopdb works now, but there are still bugs lurking in the virtual domain code. no PKGREVISION bump as db2 is not enabled by default.
13 lines
411 B
Text
13 lines
411 B
Text
$NetBSD: patch-af,v 1.1 2004/09/02 10:39:04 grant Exp $
|
|
|
|
--- dbops.c.orig 1998-05-14 02:57:39.000000000 +1000
|
|
+++ dbops.c
|
|
@@ -117,7 +117,7 @@ struct stateinfo*getstate(const char*key
|
|
if(lastcheck!=curt)
|
|
{ lastcheck=curt;
|
|
if(!cs)
|
|
- { db->cursor(db,0,&cs);d.data="";d.size=1;
|
|
+ { db->cursor(db,0,&cs,0);d.data="";d.size=1;
|
|
if(!db->get(db,0,&d,&k,0))
|
|
cs->c_get(cs,&k,&d,DB_SET);
|
|
}
|