aboutsummaryrefslogtreecommitdiff
path: root/src/proone-bne.c
diff options
context:
space:
mode:
authorDavid Timber <mieabby@gmail.com>2021-08-09 17:30:18 +1000
committerDavid Timber <mieabby@gmail.com>2021-08-09 19:20:40 +1000
commiteea0a9fbbf1aff1eac1f17914d5c116de98e1d93 (patch)
tree776e61c070d7afa0df683093b82f327631534341 /src/proone-bne.c
parentf6e94a01fd84b693c5a74b8f40edb4dc89836bdf (diff)
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
Diffstat (limited to 'src/proone-bne.c')
-rw-r--r--src/proone-bne.c9
1 files changed, 7 insertions, 2 deletions
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);
}
}
}