artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92e88ce
)
use crypt_checkpass to check password
author
tedu
<tedu@openbsd.org>
Thu, 22 Oct 2015 12:52:15 +0000
(12:52 +0000)
committer
tedu
<tedu@openbsd.org>
Thu, 22 Oct 2015 12:52:15 +0000
(12:52 +0000)
libexec/rpc.yppasswdd/yppasswdd_mkpw.c
patch
|
blob
|
history
diff --git
a/libexec/rpc.yppasswdd/yppasswdd_mkpw.c
b/libexec/rpc.yppasswdd/yppasswdd_mkpw.c
index
260115e
..
514cb24
100644
(file)
--- a/
libexec/rpc.yppasswdd/yppasswdd_mkpw.c
+++ b/
libexec/rpc.yppasswdd/yppasswdd_mkpw.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: yppasswdd_mkpw.c,v 1.3
1 2013/11/27 21:25:40 deraadt Exp $
*/
+/* $OpenBSD: yppasswdd_mkpw.c,v 1.3
2 2015/10/22 12:52:15 tedu Exp $
*/
/*
* Copyright (c) 1994 Mats O Jansson <moj@stacken.kth.se>
@@
-169,7
+169,7
@@
make_passwd(yppasswd *argp)
EXPAND(pw.pw_dir);
EXPAND(pw.pw_shell);
- if (
strcmp(crypt(argp->oldpass, pw.pw_passwd)
, pw.pw_passwd) != 0)
+ if (
crypt_checkpass(argp->oldpass
, pw.pw_passwd) != 0)
goto fail;
if (!nopw && badchars(argp->newpw.pw_passwd))