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)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 4 Sep 2019 15:58:22 +0000 (11:58 -0400)
commitb8dbd7aca30ad71fbf8afafd77bb550263a76d08
treecd235771c38cecc4f57d853d272e38125f6bb267
parent9d9daa0400c11a4000be76ea0f8af45567649c23
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.025524 seconds and 4 git commands to generate.