Changed pwd_mkdb to use dbopen.

This commit is contained in:
proven 1993-04-21 07:54:40 +00:00
parent e3769df787
commit 76be010f7a

View File

@ -114,14 +114,14 @@ main(argc, argv)
/* Open the temporary insecure password database. */
(void)sprintf(buf, "%s.tmp", _PATH_MP_DB);
dp = hash_open(buf, O_WRONLY|O_CREAT|O_EXCL, PERM_INSECURE, NULL);
dp = dbopen(buf, O_RDWR|O_CREAT|O_EXCL, PERM_INSECURE, DB_HASH, NULL);
if (!dp)
error(buf);
clean = FILE_INSECURE;
/* Open the temporary encrypted password database. */
(void)sprintf(buf, "%s.tmp", _PATH_SMP_DB);
edp = hash_open(buf, O_WRONLY|O_CREAT|O_EXCL, PERM_SECURE, NULL);
edp = dbopen(buf, O_RDWR|O_CREAT|O_EXCL, PERM_SECURE, DB_HASH, NULL);
if (!edp)
error(buf);
clean = FILE_SECURE;