Summary: | [patch] minor cut-and-paste error in pwd_mkdb(8) | ||
---|---|---|---|
Product: | Base System | Reporter: | Miles Ohlrich <turingsboy> |
Component: | bin | Assignee: | Marcelo Araujo <araujo> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | CC: | araujo, jilles, nectar |
Priority: | --- | ||
Version: | CURRENT | ||
Hardware: | Any | ||
OS: | Any |
Description
Miles Ohlrich
2014-07-07 19:41:25 UTC
Interesting.. nectar@ wrote the code in question in 2003 so CC him. I think this copy/paste error has no effect, since dp and sdp both refer to DB_HASH type databases, so they have the same put function. Nevertheless, it seems good to fix this (I have not tested it though). I will take it. A commit references this bug: Author: araujo Date: Mon Dec 28 05:48:22 UTC 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@yahoo.com> Approved by: rodrigc (mentor) Differential Revision: https://reviews.freebsd.org/D4255 Changes: head/usr.sbin/pwd_mkdb/pwd_mkdb.c Committed. Thanks! |