-/* $OpenBSD: getnetgrent.c,v 1.31 2023/02/17 18:00:11 miod Exp $ */
+/* $OpenBSD: getnetgrent.c,v 1.32 2024/01/22 17:21:52 deraadt Exp $ */
/*
* Copyright (c) 1994 Christos Zoulas
return;
if (_ng_db == NULL)
- _ng_db = dbopen(_PATH_NETGROUP_DB, O_RDONLY, 0, DB_HASH, NULL);
+ _ng_db = __hash_open(_PATH_NETGROUP_DB, O_RDONLY, 0, NULL, 0);
#ifdef YP
/*
struct stringlist *sl;
if (_ng_db == NULL)
- _ng_db = dbopen(_PATH_NETGROUP_DB, O_RDONLY, 0, DB_HASH, NULL);
+ _ng_db = __hash_open(_PATH_NETGROUP_DB, O_RDONLY, 0, NULL, 0);
#ifdef YP
/*
-/* $OpenBSD: getpwent.c,v 1.66 2022/08/02 17:00:15 deraadt Exp $ */
+/* $OpenBSD: getpwent.c,v 1.67 2024/01/22 17:21:52 deraadt Exp $ */
/*
* Copyright (c) 2008 Theo de Raadt
* Copyright (c) 1988, 1993
__getpwent_has_yppw = -1;
#endif
if (shadow)
- _pw_db = dbopen(_PATH_SMP_DB, O_RDONLY, 0, DB_HASH, NULL);
+ _pw_db = __hash_open(_PATH_SMP_DB, O_RDONLY, 0, NULL, 0);
if (!_pw_db)
- _pw_db = dbopen(_PATH_MP_DB, O_RDONLY, 0, DB_HASH, NULL);
+ _pw_db = __hash_open(_PATH_MP_DB, O_RDONLY, 0, NULL, 0);
if (_pw_db) {
errno = saved_errno;
return (1);