From: Julien Desfossez Date: Mon, 21 Oct 2013 03:31:45 +0000 (-0400) Subject: fix: don't return an error if a directory does not contain a valid trace X-Git-Tag: v0.3~70 X-Git-Url: https://git.lttng.org/?p=lttngtop.git;a=commitdiff_plain;h=3bcf0f6b3dc99e6328bc3191cb43f386cca5a44b fix: don't return an error if a directory does not contain a valid trace Reported-by: Simon Marchi Signed-off-by: Julien Desfossez --- diff --git a/src/lttngtop.c b/src/lttngtop.c index 2800cfa..8cec6d5 100644 --- a/src/lttngtop.c +++ b/src/lttngtop.c @@ -861,7 +861,6 @@ int bt_context_add_traces_recursive(struct bt_context *ctx, const char *path, metafd = openat(dirfd, "metadata", O_RDONLY); if (metafd < 0) { close(dirfd); - ret = -1; continue; } else { int trace_id;