bt_common_parse_lttng_live_url(): don't accept `net://RDHOST/host/TGTHOST`
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Sat, 17 Aug 2019 00:02:33 +0000 (20:02 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Sat, 17 Aug 2019 05:31:12 +0000 (01:31 -0400)
commit87cd0f0b350a1ca1c65e98770d9a487e698eb37e
tree77fd850ade8af49ee8ff55e137818d89358676e0
parenta91cb83e0e5536c14328ddef0ba2b571063dbbdd
bt_common_parse_lttng_live_url(): don't accept `net://RDHOST/host/TGTHOST`

This patch makes the bt_common_parse_lttng_live_url() function not
accept LTTng live URLs with the form:

    net[4]://RDHOST[:RDPORT]/host/TGTHOST

This was previously accepted for the session listing feature, but in
fact the `babeltrace` program (Babeltrace 1) only accepts this form:

    net[4]://RDHOST[:RDPORT]

and the list of URLs that the `babeltrace2` program prints with the
first form is invalid.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I68a804c69ec557ed9cc77c9020afbbe2f79a7c43
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1961
Tested-by: jenkins <jenkins@lttng.org>
src/common/common.c
This page took 0.02365 seconds and 4 git commands to generate.