From: Julien Desfossez Date: Mon, 12 Mar 2012 18:59:44 +0000 (-0400) Subject: Fix error checking in bt_context_add_traces_recursive X-Git-Tag: v1.0.0-pre4~3 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=ec4c2b5ccbda1625a9011c27994186bf78cc9d72;hp=ec4c2b5ccbda1625a9011c27994186bf78cc9d72 Fix error checking in bt_context_add_traces_recursive If a trace directory is inexistant or if the user doesn't have the permission to open the parent directory, bt_context_add_traces_recursive returned 0, now it returns -1. This function is not part of the API, so the programs who copied this function into their code should apply this fix as well. Fixes #103 Signed-off-by: Julien Desfossez Signed-off-by: Mathieu Desnoyers ---