fix: don't return an error if a directory does not contain a valid trace
authorJulien Desfossez <jdesfossez@efficios.com>
Mon, 21 Oct 2013 03:31:45 +0000 (23:31 -0400)
committerJulien Desfossez <jdesfossez@efficios.com>
Mon, 21 Oct 2013 03:31:52 +0000 (23:31 -0400)
Reported-by: Simon Marchi <simon.marchi@polymtl.ca>
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
src/lttngtop.c

index 2800cfac124a208698f47396e89659e8342850d5..8cec6d52c1ffeb0765cc56eb93f914c374493d47 100644 (file)
@@ -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;
This page took 0.02529 seconds and 4 git commands to generate.