Fix: Pass session name to config_load_session when no path is provided
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 19 Mar 2014 15:28:52 +0000 (11:28 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Wed, 19 Mar 2014 17:26:13 +0000 (13:26 -0400)
Fixes #756

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/common/config/config.c

index 13af2f117e7bf7306cdab4930d45a711da5312ab..7c6c49b6661a5b7353b0b2aecf67926938a5bdb6 100644 (file)
@@ -2456,7 +2456,7 @@ int config_load_session(const char *path, const char *session_name,
                                goto end;
                        }
 
-                       ret = load_session_from_path(path, NULL,
+                       ret = load_session_from_path(path, session_name,
                                &validation_ctx, 0);
                        if (ret && ret != -LTTNG_ERR_LOAD_SESSION_NOENT) {
                                free(path);
@@ -2467,8 +2467,8 @@ int config_load_session(const char *path, const char *session_name,
                }
 
                /* Try system session configuration path */
-               ret = load_session_from_path(DEFAULT_SESSION_SYSTEM_CONFIGPATH, NULL,
-                               &validation_ctx, 0);
+               ret = load_session_from_path(DEFAULT_SESSION_SYSTEM_CONFIGPATH,
+                       session_name, &validation_ctx, 0);
                if (ret && ret != -LTTNG_ERR_LOAD_SESSION_NOENT) {
                        goto end;
                }
This page took 0.027216 seconds and 4 git commands to generate.