lib: standardize listener ID types with new `bt_listener_id` type
[babeltrace.git] / src / cli / babeltrace2-cfg-src-auto-disc.c
index 505a265f272f03d34097b8ea32da012e9415814b..6b1b45635dca0fc813077cac11ca36c3258f83df 100644 (file)
@@ -525,7 +525,7 @@ int auto_discover_source_for_input_as_dir_or_file_rec(GString *input,
                        const char *fmt = "Failed to open directory %s: %s";
                        BT_LOGW(fmt, input->str, error->message);
 
-                       if (errno == EACCES) {
+                       if (error->code == G_FILE_ERROR_ACCES) {
                                /* This is not a fatal error, we just skip it. */
                                status = 1;
                                goto end;
@@ -562,7 +562,7 @@ int auto_discover_source_for_input_as_dir_or_file_rec(GString *input,
                                BT_LOGW_ERRNO("Failed to read directory entry", ": dir=%s", input->str);
                                goto error;
                        }
-               } while (dirent != NULL);
+               } while (dirent);
 
                status = dir_status;
 
This page took 0.023576 seconds and 4 git commands to generate.