From: Michael Jeanson Date: Wed, 14 Oct 2015 18:35:36 +0000 (-0400) Subject: Port: Use LTTNG_PATH_MAX instead of PATH_MAX X-Git-Tag: v2.8.0-rc1~285 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ba86d0a7f267c4a00c2e8d38ae569b7c32c415ed;p=lttng-tools.git Port: Use LTTNG_PATH_MAX instead of PATH_MAX Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- 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;