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.11.0-rc3~84 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=9d72b79afad10b6f8dbfcd3956297c9984955986;p=lttng-tools.git 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;