Change configuration file and trace output dir
[lttng-tools.git] / lttng / commands / set_session.c
index f89545fd46e258831b67cec91643f92837381265..147b976c7f0b733567a8c6a3e11d5ea6634b9990 100644 (file)
@@ -59,25 +59,11 @@ static void usage(FILE *ofp)
 static int set_session(void)
 {
        int ret = CMD_SUCCESS;
-       char *path, *alloc_path;
+       char *path;
 
-       alloc_path = config_get_default_path();
-       if (alloc_path == NULL) {
-               ERR("Unable to find config directory");
-               ret = CMD_ERROR;
-               goto error;
-       }
-
-       path = config_generate_dir_path(alloc_path);
+       path = config_get_default_path();
        if (path == NULL) {
-               ret = CMD_FATAL;
-               goto error;
-       }
-
-       ret = config_init(path);
-       if (ret < 0) {
-               ERR("Init config directory and file failed");
-               ret = CMD_ERROR;
+               ret = -1;
                goto error;
        }
 
This page took 0.022859 seconds and 4 git commands to generate.