projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: lttng-ctl: erroneous check if user is part of the tracing group
[lttng-tools.git]
/
src
/
lib
/
lttng-ctl
/
lttng-ctl.c
diff --git
a/src/lib/lttng-ctl/lttng-ctl.c
b/src/lib/lttng-ctl/lttng-ctl.c
index ad4974a1395cd4d284a3c56b3ac10bf4178c0381..2765b32cf1e5a403e975fb645e3d9dcb690ce461 100644
(file)
--- a/
src/lib/lttng-ctl/lttng-ctl.c
+++ b/
src/lib/lttng-ctl/lttng-ctl.c
@@
-376,7
+376,7
@@
static int set_session_daemon_path(void)
in_tgroup = lttng_check_tracing_group();
}
in_tgroup = lttng_check_tracing_group();
}
- if ((uid == 0) || in_tgroup) {
+ if ((uid == 0) || in_tgroup
== 1
) {
const int ret = lttng_strncpy(sessiond_sock_path,
DEFAULT_GLOBAL_CLIENT_UNIX_SOCK,
sizeof(sessiond_sock_path));
const int ret = lttng_strncpy(sessiond_sock_path,
DEFAULT_GLOBAL_CLIENT_UNIX_SOCK,
sizeof(sessiond_sock_path));
@@
-2128,7
+2128,7
@@
int lttng_destroy_session_no_wait(const char *session_name)
enum lttng_error_code ret_code;
ret_code = lttng_destroy_session_ext(session_name, NULL);
enum lttng_error_code ret_code;
ret_code = lttng_destroy_session_ext(session_name, NULL);
- return ret_code == LTTNG_OK ?
ret_code
: -ret_code;
+ return ret_code == LTTNG_OK ?
0
: -ret_code;
}
/*
}
/*
This page took
0.023421 seconds
and
4
git commands to generate.