Fix lttng bug having the wrong sessiond path
[lttng-tools.git] / liblttngctl / liblttngctl.c
index 38be54774049532c8d9cef30a67c244454109b96..e400775eaa97a6ffcd983cf4f6cd14da695ec18b 100644 (file)
@@ -431,7 +431,7 @@ static int set_session_daemon_path(void)
 
        /* Are we in the tracing group ? */
        ret = check_tracing_group(tracing_group);
-       if (ret < 0) {
+       if (ret < 0 && getuid() != 0) {
                if (sprintf(sessiond_sock_path, DEFAULT_HOME_CLIENT_UNIX_SOCK,
                                        getenv("HOME")) < 0) {
                        return -ENOMEM;
This page took 0.022512 seconds and 4 git commands to generate.