Changed pwd_mkdb to use dbopen.
This commit is contained in:
parent
e3769df787
commit
76be010f7a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user