Remove unused header file
[lttng-tools.git] / ltt-sessiond / main.c
index 75215b3f23039bb16caa3d5e45af5c854f3689db..0ab3ad9a73300221092babcbbd3671ea8b5983b5 100644 (file)
@@ -1225,7 +1225,8 @@ static int process_client_msg(struct command_ctx *cmd_ctx)
                if (cmd_ctx->session->kernel_session != NULL) {
                        if (cmd_ctx->session->kernel_session->metadata == NULL) {
                                DBG("Open kernel metadata");
-                               ret = kernel_open_metadata(cmd_ctx->session->kernel_session);
+                               ret = kernel_open_metadata(cmd_ctx->session->kernel_session,
+                                               cmd_ctx->session->path);
                                if (ret < 0) {
                                        ret = LTTCOMM_KERN_META_FAIL;
                                        goto error;
@@ -1760,7 +1761,7 @@ static int check_existing_daemon()
  *  Set the tracing group gid onto the client socket.
  *
  *  Race window between mkdir and chown is OK because we are going from
- *  less permissive (root.root) to more permissive (root.tracing).
+ *  more permissive (root.root) to les permissive (root.tracing).
  */
 static int set_permissions(void)
 {
@@ -1773,8 +1774,13 @@ static int set_permissions(void)
                (grp = getgrnam(default_tracing_group));
 
        if (grp == NULL) {
-               ERR("Missing tracing group. Aborting execution.\n");
-               ret = -1;
+               if (is_root) {
+                       WARN("No tracing group detected");
+                       ret = 0;
+               } else {
+                       ERR("Missing tracing group. Aborting execution.");
+                       ret = -1;
+               }
                goto end;
        }
 
This page took 0.024681 seconds and 4 git commands to generate.