projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: honor base path for network URIs
[lttng-tools.git]
/
src
/
bin
/
lttng-relayd
/
session.c
diff --git
a/src/bin/lttng-relayd/session.c
b/src/bin/lttng-relayd/session.c
index 5eedffc94e657aa924fb90ab72bf24b6056c6080..603a80978701f000d2aa0284d52dcbb83824c125 100644
(file)
--- a/
src/bin/lttng-relayd/session.c
+++ b/
src/bin/lttng-relayd/session.c
@@
-87,7
+87,7
@@
end:
* Return allocated session or else NULL.
*/
struct relay_session *session_create(const char *session_name,
* Return allocated session or else NULL.
*/
struct relay_session *session_create(const char *session_name,
- const char *hostname,
+ const char *hostname,
const char *base_path,
uint32_t live_timer,
bool snapshot,
const lttng_uuid sessiond_uuid,
uint32_t live_timer,
bool snapshot,
const lttng_uuid sessiond_uuid,
@@
-115,6
+115,12
@@
struct relay_session *session_create(const char *session_name,
WARN("Hostname exceeds maximal allowed length");
goto error;
}
WARN("Hostname exceeds maximal allowed length");
goto error;
}
+ if (lttng_strncpy(session->base_path, base_path,
+ sizeof(session->base_path))) {
+ WARN("Base path exceeds maximal allowed length");
+ goto error;
+ }
+
session->ctf_traces_ht = lttng_ht_new(0, LTTNG_HT_TYPE_STRING);
if (!session->ctf_traces_ht) {
goto error;
session->ctf_traces_ht = lttng_ht_new(0, LTTNG_HT_TYPE_STRING);
if (!session->ctf_traces_ht) {
goto error;
This page took
0.036987 seconds
and
5
git commands to generate.