X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Futils.c;h=392fab6a1b68bf6e25061bb6ec869e6738e67c8a;hp=ad13d3277eb4106c7320bfbe3563d53ba57c1d72;hb=feb0f3e5900ff58202ea0c3f227de3c1b8291952;hpb=0c7bcad5eaa11b368460759fc87f949e8c56b98f diff --git a/src/bin/lttng-relayd/utils.c b/src/bin/lttng-relayd/utils.c index ad13d3277..392fab6a1 100644 --- a/src/bin/lttng-relayd/utils.c +++ b/src/bin/lttng-relayd/utils.c @@ -29,14 +29,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 +36,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");