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:
Marcelo Araujo 2015-12-28 05:48:22 +00:00
parent 4fdd48909c
commit daa3baeb1d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=292828

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;