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
This commit is contained in:
araujo 2015-12-28 05:48:22 +00:00
parent 938fedc5e2
commit f493b25fe2

View File

@ -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;