Fix: sessiond: cmd_enable_channel: negative error code used
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 25 Mar 2022 19:34:47 +0000 (15:34 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 28 Mar 2022 20:24:36 +0000 (16:24 -0400)
commit159a54f4a1c884e465c40ffc7ac02fd64c294bf8
tree5a856556a036378b3a514d75e0ebdcca5abbdfbd
parenta476c311c901b130ebb98689ac5c9cdae02e1e66
Fix: sessiond: cmd_enable_channel: negative error code used

A negative `lttng_error_code` value is returned (as an integer)
when a channel copy fails. Return a positive error code.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I340f739cc33858a06832bb75a7a6d5e18459551f
src/bin/lttng-sessiond/cmd.cpp
This page took 0.030639 seconds and 4 git commands to generate.