2 ** Copyright 1998 - 2007 Double Precision, Inc.
3 ** See COPYING for distribution information.
16 static const char rcsid
[]="$Id: userdb2.c,v 1.6 2007/04/14 03:20:55 mrsam Exp $";
18 extern int userdb_debug_level
;
20 char *userdbshadow(const char *sh
, const char *u
)
28 if (dbobj_open(&d
, sh
, "R"))
30 if (userdb_debug_level
)
32 "DEBUG: userdbshadow: unable to open %s\n", sh
);
36 q
=dbobj_fetch(&d
, u
, strlen(u
), &l
, "");
40 if (userdb_debug_level
)
42 "DEBUG: userdbshadow: entry not found\n");
54 if (l
) memcpy(p
, q
, l
);