From eea0a9fbbf1aff1eac1f17914d5c116de98e1d93 Mon Sep 17 00:00:00 2001 From: David Timber Date: Mon, 9 Aug 2021 17:30:18 +1000 Subject: Protocol and build system change ... * Use autoheader * Add --enable-minmem * Add OS code. Bin archive and protocol changed accordingly * Add instance flags in hostinfo frame. Bitfield util added for this * Add org_id in hostinfo for lineage record * SQL schema change: store integer value of hostinfo arch and os * Remove config.c * prne_index_nybin() now sets errno * Instance ids are now preserved for lineage record * Proone: remove arguments after init * Fix bug in prne_htbt_ser_bin_meta(): alloc_len is not checked --- src/proone-bne.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/proone-bne.c') diff --git a/src/proone-bne.c b/src/proone-bne.c index 2c85adc..26d0587 100644 --- a/src/proone-bne.c +++ b/src/proone-bne.c @@ -134,7 +134,7 @@ static void report_result (const prne_bne_result_t *r) { vec_str, r->ny_instance ? "true" : "false"); if (r->vec >= 0) { - const char *arch_str = prne_arch_tostr(r->arch); + const char *arch_str; if (r->cred.id != NULL) { printf( @@ -145,8 +145,13 @@ static void report_result (const prne_bne_result_t *r) { r->cred.pw); } printf("\tprc: %d\n", r->prc); + arch_str = prne_arch_tostr(r->bin_host.arch); if (arch_str != NULL) { - printf("\tarch: %s\n", arch_str); + printf("\thost arch: %s\n", arch_str); + } + arch_str = prne_arch_tostr(r->bin_used.arch); + if (arch_str != NULL) { + printf("\tbin arch: %s\n", arch_str); } } } -- cgit