From ba86d0a7f267c4a00c2e8d38ae569b7c32c415ed Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Wed, 14 Oct 2015 14:35:36 -0400 Subject: [PATCH] Port: Use LTTNG_PATH_MAX instead of PATH_MAX MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- include/lttng/constant.h | 2 ++ src/common/sessiond-comm/relayd.h | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/lttng/constant.h b/include/lttng/constant.h index d3bc8f4a5..00074a2e4 100644 --- a/include/lttng/constant.h +++ b/include/lttng/constant.h @@ -58,4 +58,6 @@ #define LTTNG_HOST_NAME_MAX 64 +#define LTTNG_PATH_MAX 4096 + #endif /* LTTNG_CONSTANT_H */ diff --git a/src/common/sessiond-comm/relayd.h b/src/common/sessiond-comm/relayd.h index fa45de16a..f6ba15abe 100644 --- a/src/common/sessiond-comm/relayd.h +++ b/src/common/sessiond-comm/relayd.h @@ -68,7 +68,7 @@ struct lttcomm_relayd_status_session { */ struct lttcomm_relayd_add_stream { char channel_name[DEFAULT_STREAM_NAME_LEN]; - char pathname[PATH_MAX]; + char pathname[LTTNG_PATH_MAX]; } LTTNG_PACKED; /* @@ -77,7 +77,7 @@ struct lttcomm_relayd_add_stream { */ struct lttcomm_relayd_add_stream_2_2 { char channel_name[DEFAULT_STREAM_NAME_LEN]; - char pathname[PATH_MAX]; + char pathname[LTTNG_PATH_MAX]; uint64_t tracefile_size; uint64_t tracefile_count; } LTTNG_PACKED; -- 2.34.1