From 1dc2c6a592db8902835d10e62984ae4e0374780d Mon Sep 17 00:00:00 2001 From: Greg Lehey Date: Thu, 21 Feb 2008 07:12:56 +0000 Subject: [PATCH] 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 --- usr.sbin/sa/db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/sa/db.c b/usr.sbin/sa/db.c index c4f83d17a6a8..c6b25f3d7410 100644 --- a/usr.sbin/sa/db.c +++ b/usr.sbin/sa/db.c @@ -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);