Ensure that the -s flag truncates the accounting data.

This problem has only been reported on the amd64 platform.

PR:		bin/120293
Tested by:	Callum Gibson
MFC after:	2 weeks
This commit is contained in:
Greg Lehey 2008-02-21 07:12:56 +00:00
parent 5b7a04161d
commit 1dc2c6a592
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=176433

View File

@ -67,7 +67,7 @@ db_copy_in(DB **mdb, const char *dbname, const char *uname, BTREEINFO *bti,
if (iflag)
return (0);
if ((ddb = dbopen(dbname, O_RDONLY, 0, DB_BTREE, NULL)) == NULL) {
if ((ddb = dbopen(dbname, O_RDONLY, 0, DB_BTREE, bti)) == NULL) {
if (errno == ENOENT)
return (0);
warn("retrieving %s summary", uname);