summaryrefslogtreecommitdiff
path: root/libexec/rpc.yppasswdd/yppasswdd_mkpw.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2000-11-26 01:29:44 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2000-11-26 01:29:44 +0000
commit0833960ec5375df11695c85f9ee7ac29a2001cbf (patch)
tree6e5bd2c214a08ac12099061f8baa8c99002dc7e5 /libexec/rpc.yppasswdd/yppasswdd_mkpw.c
parent19054405341f0d0f83f6550fada15989c0fea2df (diff)
Update for pw_mkdb(3) interface change. All but vipw and userdel can
specify a username (and thus avoid rebuilding the while database).
Diffstat (limited to 'libexec/rpc.yppasswdd/yppasswdd_mkpw.c')
-rw-r--r--libexec/rpc.yppasswdd/yppasswdd_mkpw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/rpc.yppasswdd/yppasswdd_mkpw.c b/libexec/rpc.yppasswdd/yppasswdd_mkpw.c
index cd313e6e31d..0f6f46da350 100644
--- a/libexec/rpc.yppasswdd/yppasswdd_mkpw.c
+++ b/libexec/rpc.yppasswdd/yppasswdd_mkpw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: yppasswdd_mkpw.c,v 1.18 1999/08/06 20:41:05 deraadt Exp $ */
+/* $OpenBSD: yppasswdd_mkpw.c,v 1.19 2000/11/26 01:29:43 millert Exp $ */
/*
* Copyright (c) 1994 Mats O Jansson <moj@stacken.kth.se>
@@ -32,7 +32,7 @@
*/
#ifndef LINT
-static char rcsid[] = "$OpenBSD: yppasswdd_mkpw.c,v 1.18 1999/08/06 20:41:05 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: yppasswdd_mkpw.c,v 1.19 2000/11/26 01:29:43 millert Exp $";
#endif
#include <sys/param.h>
@@ -224,7 +224,7 @@ make_passwd(argp)
goto fail;
pw_copy(pfd, tfd, &pw);
- pw_mkdb();
+ pw_mkdb(pw.pw_name);
free(bp);
if (fork() == 0) {