diff options
author | millert <millert@openbsd.org> | 2018-10-09 12:33:40 +0000 |
---|---|---|
committer | millert <millert@openbsd.org> | 2018-10-09 12:33:40 +0000 |
commit | 487b77fa1a9c6f55e323e282533c979433c03736 (patch) | |
tree | 022f8bf342f608bcce9f3c49e754b56aaeac268a /usr.sbin/pwd_mkdb | |
parent | Fix a "copy-and-paste" error that Coverity picked up in the augment code (diff) | |
download | wireguard-openbsd-487b77fa1a9c6f55e323e282533c979433c03736.tar.xz wireguard-openbsd-487b77fa1a9c6f55e323e282533c979433c03736.zip |
Go back to hard-coding 4096 for the bucket size for now.
Using the optimal filesystem block size results in a larger file
on the install media.
Diffstat (limited to 'usr.sbin/pwd_mkdb')
-rw-r--r-- | usr.sbin/pwd_mkdb/pwd_mkdb.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.sbin/pwd_mkdb/pwd_mkdb.c b/usr.sbin/pwd_mkdb/pwd_mkdb.c index 37bc4c829cc..62ef9b988b4 100644 --- a/usr.sbin/pwd_mkdb/pwd_mkdb.c +++ b/usr.sbin/pwd_mkdb/pwd_mkdb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pwd_mkdb.c,v 1.54 2018/09/18 03:05:42 millert Exp $ */ +/* $OpenBSD: pwd_mkdb.c,v 1.55 2018/10/09 12:33:40 millert Exp $ */ /*- * Copyright (c) 1991, 1993, 1994 @@ -192,10 +192,6 @@ main(int argc, char **argv) if (st.st_size / 128 * 3 > openinfo.nelem) openinfo.nelem = st.st_size / 128 * 3; - /* Use optimal filesystem block size. */ - if (st.st_blksize > openinfo.bsize) - openinfo.bsize = st.st_blksize; - /* If only updating a single record, stash the old uid */ if (username) { dp = dbopen(_PATH_MP_DB, O_RDONLY, 0, DB_HASH, NULL); |