mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 03:49:02 +00:00
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:
parent
4fdd48909c
commit
daa3baeb1d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=292828
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user