From efdb27e3516c0de570a7a1476d15c4e84ac0d25c Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Tue, 18 Aug 2009 17:36:51 +0100 Subject: [PATCH] Fix "onak dump" to actually generate multiple output files We weren't incrementing the key count so everything went into a single file instead of limiting the file size. --- onak.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onak.c b/onak.c index 30f7710..40e8b0e 100644 --- a/onak.c +++ b/onak.c @@ -74,7 +74,7 @@ void dump_func(void *ctx, struct openpgp_publickey *key) state = (struct dump_ctx *) ctx; - if (state->fd == -1 || state->count > state->maxcount) { + if (state->fd == -1 || state->count++ > state->maxcount) { if (state->fd != -1) { close(state->fd); state->fd = -1; -- 2.39.5