cli: fix "permission denied" test after g_dir_open
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 25 Jul 2019 14:09:11 +0000 (10:09 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 26 Jul 2019 18:59:54 +0000 (14:59 -0400)
commitd847ef864b2e8a14af0b2b4c926c1cd33768948c
tree07500e0fe0e02d9df11f6c5209a140ff608f8926
parent212db9ad2370852c17b1be3413ffcab18d91aeaf
cli: fix "permission denied" test after g_dir_open

When changing from opendir/readdir to g_dir_open/g_dir_read_name, I
forgot this check from reading errno to reading the error output
variable.

Change-Id: I95e22531c20ec90df0bc517bbf666f5698cddd15
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1781
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/cli/babeltrace2-cfg-src-auto-disc.c
This page took 0.024757 seconds and 4 git commands to generate.