fp = open_config(path, "r");
if (fp == NULL) {
ERR("Can't find valid lttng config %s/.lttngrc", path);
fp = open_config(path, "r");
if (fp == NULL) {
ERR("Can't find valid lttng config %s/.lttngrc", path);
if ((ret = fscanf(fp, "%[^'=']=%s\n", var, session_name)) != 2) {
if (ret == -1) {
ERR("Missing session=NAME in config file.");
if ((ret = fscanf(fp, "%[^'=']=%s\n", var, session_name)) != 2) {
if (ret == -1) {
ERR("Missing session=NAME in config file.");