From 01108b24506dbe2083a23b61baa0bba9451f5ee0 Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Tue, 18 Aug 2009 17:38:28 +0100 Subject: [PATCH] Limit key dump files to 100,000 keys for "onak dump" Gives a file size of around 125M, which is a bit saner than > 1G --- onak.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onak.c b/onak.c index 40e8b0e..e6b9287 100644 --- a/onak.c +++ b/onak.c @@ -161,7 +161,7 @@ int main(int argc, char *argv[]) } else if (!strcmp("dump", argv[optind])) { config.dbbackend->initdb(true); dumpstate.count = dumpstate.filenum = 0; - dumpstate.maxcount = 1000000; + dumpstate.maxcount = 100000; dumpstate.fd = -1; dumpstate.filebase = "keydump.%d.pgp"; config.dbbackend->iterate_keys(dump_func, &dumpstate); -- 2.30.2