From: Mathieu Desnoyers Date: Thu, 23 Feb 2012 16:20:28 +0000 (-0500) Subject: freebsd port: use a leading / prefix for shm tmp name X-Git-Tag: v2.1.0-rc1~97^2~11 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=dda4784f1d19fa0426cbaae0738c054ee4d39cba;p=lttng-ust.git freebsd port: use a leading / prefix for shm tmp name FreeBSD complains if the leading / is missing. Signed-off-by: Mathieu Desnoyers --- diff --git a/libringbuffer/shm.c b/libringbuffer/shm.c index 4afb0c6e..c10e58a2 100644 --- a/libringbuffer/shm.c +++ b/libringbuffer/shm.c @@ -36,7 +36,7 @@ struct shm_object *shm_object_table_append(struct shm_object_table *table, int shmfd, waitfd[2], ret, i, sigblocked = 0; struct shm_object *obj; char *memory_map; - char tmp_name[NAME_MAX] = "ust-shm-tmp-XXXXXX"; + char tmp_name[NAME_MAX] = "/ust-shm-tmp-XXXXXX"; sigset_t all_sigs, orig_sigs; if (table->allocated_len >= table->size)