/*
- * Copyright (c) - 2013 Jérémie Galarneau <jeremie.galarneau@efficios.com>
+ * Copyright (C) 2013 Jérémie Galarneau <jeremie.galarneau@efficios.com>
*
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by as
- * published by the Free Software Foundation; only version 2 of the License.
+ * SPDX-License-Identifier: GPL-2.0-only
*
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc., 51
- * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include <tap/tap.h>
-#include <common/config/config.h>
+#include <common/config/session-config.h>
#include <common/utils.h>
#include <string.h>
+#include <lttng/constant.h>
struct state {
int section_1;
int lttng_opt_quiet = 1;
int lttng_opt_verbose = 0;
+int lttng_opt_mi;
-int entry_handler(const struct config_entry *entry,
- struct state *state)
+static int entry_handler(const struct config_entry *entry, struct state *state)
{
int ret = 0;
goto end;
}
+ if (strlen(argv[1]) >= LTTNG_PATH_MAX) {
+ diag("The provided path exceeds the maximal permitted length of %i bytes",
+ LTTNG_PATH_MAX);
+ goto end;
+ }
path = utils_expand_path(argv[1]);
if (!path) {
- fail("Failed to resolve sample INI file path")
+ fail("Failed to resolve sample INI file path");
}
plan_no_plan();