X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fview.c;h=aa8d612b57e92825e8217e6452c0a3f378aa9a99;hp=a146a91cf3131765dee43a258b483725e8d967a2;hb=e7248846cfa228ceeb454fa6b0b69bf283cef937;hpb=0c95f5b2ec754e905a0263cafc6e453f451d0ded diff --git a/src/bin/lttng/commands/view.c b/src/bin/lttng/commands/view.c index a146a91cf..aa8d612b5 100644 --- a/src/bin/lttng/commands/view.c +++ b/src/bin/lttng/commands/view.c @@ -48,7 +48,7 @@ static struct poptOption long_options[] = { /* * This is needed for each viewer since we are using execvp(). */ -static const char *babeltrace_opts[] = { "babeltrace", "-n", "all", }; +static const char *babeltrace_opts[] = { "babeltrace" }; //static const char *lttv_gui_opts[] = { "lttv-gui", "-t", }; /* @@ -288,9 +288,11 @@ static int view_trace(void) if (getuid() != 0) { if (getuid() != geteuid()) { ERR("UID does not match effective UID."); + ret = CMD_ERROR; goto error; } else if (getgid() != getegid()) { ERR("GID does not match effective GID."); + ret = CMD_ERROR; goto error; } } @@ -327,6 +329,7 @@ static int view_trace(void) if (!found) { MSG("Session name %s not found", session_name); + ret = CMD_ERROR; goto free_sessions; }