SCCS-vsn: lib/libc/db/hash/ndbm.c 5.2
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)ndbm.c 5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)ndbm.c 5.2 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
/*
#endif /* LIBC_SCCS and not lint */
/*
int mode;
{
HASHINFO info;
int mode;
{
HASHINFO info;
info.bsize = 1024;
info.ffactor = 5;
info.bsize = 1024;
info.ffactor = 5;
info.ncached = NULL;
info.hash = NULL;
info.lorder = 0;
info.ncached = NULL;
info.hash = NULL;
info.lorder = 0;
- return( hash_open ( file, flags, mode, &info ) );
+ (void)sprintf(path, "%s%s", file, DBM_SUFFIX);
+ return( hash_open ( path, flags, mode, &info ) );