Fix error checking in bt_context_add_traces_recursive
authorJulien Desfossez <julien.desfossez@efficios.com>
Mon, 12 Mar 2012 18:59:44 +0000 (14:59 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 12 Mar 2012 18:59:44 +0000 (14:59 -0400)
commitec4c2b5ccbda1625a9011c27994186bf78cc9d72
tree7028968c06f73ba7c6a524ad26f17e1c0b9c5731
parent31265d844034f20986b37670beca678b81be0741
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 <julien.desfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
converter/babeltrace.c
This page took 0.023879 seconds and 4 git commands to generate.