Fix: lttng-ctl: erroneous check if user is part of the tracing group
[lttng-tools.git] / src / lib / lttng-ctl / lttng-ctl.c
index 7a38699d9c8438cbedd423a12fd2204884dc266f..d9805e22288f44b7dc2df548fd1e21c18482b3ad 100644 (file)
@@ -388,7 +388,7 @@ static int set_session_daemon_path(void)
                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));
This page took 0.022879 seconds and 4 git commands to generate.