svn commit: r292828 - head/usr.sbin/pwd_mkdb

Marcelo Araujo araujo at FreeBSD.org
Mon Dec 28 05:48:23 UTC 2015


Author: araujo
Date: Mon Dec 28 05:48:22 2015
New Revision: 292828
URL: https://svnweb.freebsd.org/changeset/base/292828

Log:
  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 at yahoo.com>
  Approved by:	rodrigc (mentor)
  Differential Revision:	https://reviews.freebsd.org/D4255

Modified:
  head/usr.sbin/pwd_mkdb/pwd_mkdb.c

Modified: head/usr.sbin/pwd_mkdb/pwd_mkdb.c
==============================================================================
--- head/usr.sbin/pwd_mkdb/pwd_mkdb.c	Mon Dec 28 03:39:32 2015	(r292827)
+++ head/usr.sbin/pwd_mkdb/pwd_mkdb.c	Mon Dec 28 05:48:22 2015	(r292828)
@@ -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;


More information about the svn-src-head mailing list