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 <turings...@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;
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to