From: Mathieu Desnoyers Date: Thu, 8 Aug 2019 17:53:19 +0000 (-0400) Subject: Fix: destroy command: send credentials with command X-Git-Tag: v2.12.0-rc1~516 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=ee98f686b2f504fe08ed0af5baa30b220b14b34d;ds=sidebyside Fix: destroy command: send credentials with command Not sending credentials triggers spurious destroy command failure (EPERM) because session daemon receives "nobody.nobody" credentials. Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- diff --git a/src/lib/lttng-ctl/destruction-handle.c b/src/lib/lttng-ctl/destruction-handle.c index e22deaa93..b6a70bac6 100644 --- a/src/lib/lttng-ctl/destruction-handle.c +++ b/src/lib/lttng-ctl/destruction-handle.c @@ -405,7 +405,7 @@ enum lttng_error_code lttng_destroy_session_ext(const char *session_name, goto error; } - comm_ret = lttcomm_send_unix_sock(sessiond_socket, &lsm, sizeof(lsm)); + comm_ret = lttcomm_send_creds_unix_sock(sessiond_socket, &lsm, sizeof(lsm)); if (comm_ret < 0) { ret_code = LTTNG_ERR_FATAL; goto error;