projects
/
lttng-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36ef520
)
Fix uninitialized ret value
author
David Goulet
<dgoulet@efficios.com>
Tue, 7 Feb 2012 22:02:44 +0000
(17:02 -0500)
committer
David Goulet
<dgoulet@efficios.com>
Tue, 7 Feb 2012 22:02:44 +0000
(17:02 -0500)
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng/commands/view.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/lttng/commands/view.c
b/src/bin/lttng/commands/view.c
index c7424186041491f536efd0d61b9b44238dbdcc63..575109b86befce60e0a263f8aa90900b5c39debf 100644
(file)
--- a/
src/bin/lttng/commands/view.c
+++ b/
src/bin/lttng/commands/view.c
@@
-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;
}
}
This page took
0.026261 seconds
and
4
git commands to generate.