painless-security / trust-router

Moonshot Trust Router
0 stars 0 forks source link

trmon only ever responds with help message #95

Closed meadmaker closed 6 years ago

meadmaker commented 6 years ago

The trmon executable should be callable with:

trmon localhost 12310 show

But, this results in:

Usage: trmon [OPTION...] <server> <port> <command> [<option> ...]
Try `trmon --help' or `trmon --usage' for more information.

This should instead make a TR monitoring call.

jennifer-richards commented 6 years ago

Probably an issue with the option parsing code on CentOS - this works on Debian / Ubuntu

jennifer-richards commented 6 years ago

This was due to a bug in handling of errno when using the strtol() function. This should be fixed by 1ec949998ea6bc2c21e808346052b2e92d50479b

jennifer-richards commented 6 years ago

Test

Steps

  1. Run trmon with valid options (other than --help)

Expected results

  1. It does something besides printing out a usage message
meadmaker commented 6 years ago

Passed!