X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Futils.c;h=dbb1d1c7109254e88d9a80bd7a2de49174ce5039;hb=32d1569c14b4e1efce9099a1e04c338a9c42f1f7;hp=ad13d3277eb4106c7320bfbe3563d53ba57c1d72;hpb=0f907de1f20c91a2bd1a08ee4d50332d1958754b;p=lttng-tools.git diff --git a/src/bin/lttng-relayd/utils.c b/src/bin/lttng-relayd/utils.c index ad13d3277..dbb1d1c71 100644 --- a/src/bin/lttng-relayd/utils.c +++ b/src/bin/lttng-relayd/utils.c @@ -17,6 +17,7 @@ */ #define _GNU_SOURCE +#define _LGPL_SOURCE #include #include #include @@ -29,14 +30,6 @@ #include "lttng-relayd.h" #include "utils.h" -/* - * Returns the HOME directory path. Caller MUST NOT free(3) the return pointer. - */ -static char *get_default_path(void) -{ - return getenv("HOME"); -} - static char *create_output_path_auto(char *path_name) { int ret; @@ -44,7 +37,7 @@ static char *create_output_path_auto(char *path_name) char *alloc_path = NULL; char *default_path; - default_path = get_default_path(); + default_path = utils_get_home_dir(); if (default_path == NULL) { ERR("Home path not found.\n \ Please specify an output path using -o, --output PATH");