diff options
author | araujo <araujo@FreeBSD.org> | 2015-12-28 05:48:22 +0000 |
---|---|---|
committer | araujo <araujo@FreeBSD.org> | 2015-12-28 05:48:22 +0000 |
commit | f493b25fe22ec17ce6d037818e69a7776284662f (patch) | |
tree | 6165baa707e3ff169193d956b1ac8d4f83056a8b | |
parent | 938fedc5e27083e9cc6d5bcab48b95955f93d7ce (diff) | |
download | FreeBSD-src-f493b25fe22ec17ce6d037818e69a7776284662f.zip FreeBSD-src-f493b25fe22ec17ce6d037818e69a7776284662f.tar.gz |
The sdp opens the database with PERM_SECURE mode and it is different than
dp that opens the database with PERM_INSECURE, so we need to check sdp->put
against sdp instead of use dp->put.
PR: bin/191720
Submitted by: Miles Ohlrich <turingsboy@yahoo.com>
Approved by: rodrigc (mentor)
Differential Revision: https://reviews.freebsd.org/D4255
-rw-r--r-- | usr.sbin/pwd_mkdb/pwd_mkdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pwd_mkdb/pwd_mkdb.c b/usr.sbin/pwd_mkdb/pwd_mkdb.c index c382cb5..fe44520 100644 --- a/usr.sbin/pwd_mkdb/pwd_mkdb.c +++ b/usr.sbin/pwd_mkdb/pwd_mkdb.c @@ -352,7 +352,7 @@ main(int argc, char *argv[]) data.size = 1; if ((dp->put)(dp, &key, &data, 0) == -1) error("put"); - if ((dp->put)(sdp, &key, &data, 0) == -1) + if ((sdp->put)(sdp, &key, &data, 0) == -1) error("put"); } ypcnt = 0; |