projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "Add support for LTTNG_UST_HOME"
[lttng-ust.git]
/
src
/
lib
/
lttng-ust
/
lttng-ust-comm.c
diff --git
a/src/lib/lttng-ust/lttng-ust-comm.c
b/src/lib/lttng-ust/lttng-ust-comm.c
index e206456f0d98060ea20c2310c4f993c1d6494ece..e57caa12f7e23c73765b990fa804cf76685ba7f6 100644
(file)
--- a/
src/lib/lttng-ust/lttng-ust-comm.c
+++ b/
src/lib/lttng-ust/lttng-ust-comm.c
@@
-370,26
+370,16
@@
static char *get_map_shm(struct sock_info *sock_info);
/*
* Returns the HOME directory path. Caller MUST NOT free(3) the returned
* pointer.
/*
* Returns the HOME directory path. Caller MUST NOT free(3) the returned
* pointer.
- * The following env are checked in order of priority:
- * 1 - LTTNG_UST_HOME
- * 2 - LTTNG_HOME
- * 3 - HOME
*/
static
const char *get_lttng_home_dir(void)
{
const char *val;
*/
static
const char *get_lttng_home_dir(void)
{
const char *val;
- val = (const char *) lttng_ust_getenv("LTTNG_UST_HOME");
- if (val != NULL) {
- return val;
- }
-
val = (const char *) lttng_ust_getenv("LTTNG_HOME");
if (val != NULL) {
return val;
}
val = (const char *) lttng_ust_getenv("LTTNG_HOME");
if (val != NULL) {
return val;
}
-
return (const char *) lttng_ust_getenv("HOME");
}
return (const char *) lttng_ust_getenv("HOME");
}
This page took
0.023586 seconds
and
4
git commands to generate.