Don't use db support unless its build into libc but we dont check for

that now, so just disable the code. This removes the dependency on
libdb for roken, and that is a good thing since it causes problem with
nss plugins that uses DB3 that also provides the same symbol, but with
a diffrent ABI. so when the application calls getpwnamn() and it
linked to roken, it craches in the nss functions.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16561 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-01-13 14:25:32 +00:00
parent 163c6cb7b5
commit 4fc736ab5a

View File

@@ -69,9 +69,14 @@ static size_t topreclen; /* toprec length */
static char *toprec; /* Additional record specified by cgetset() */
static int gottoprec; /* Flag indicating retrieval of toprecord */
#if 0 /*
* Don't use db support unless its build into libc but we dont
* check for that now, so just disable the code.
*/
#if defined(HAVE_DBOPEN) && defined(HAVE_DB_H)
#define USE_DB
#endif
#endif
#ifdef USE_DB
static int cdbget (DB *, char **, const char *);