mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-27 09:12:52 +00:00
trivial: ignore strings files in directory with drivers not attributes
This commit is contained in:
parent
d51364a8b1
commit
3e5fce5ffa
@ -368,6 +368,10 @@ fu_bios_attrs_setup(FuBiosAttrs *self, GError **error)
|
||||
if (driver == NULL)
|
||||
break;
|
||||
path = g_build_filename(sysfsfwdir, driver, "attributes", NULL);
|
||||
if (!g_file_test(path, G_FILE_TEST_IS_DIR)) {
|
||||
g_debug("Skipping non-directory %s", path);
|
||||
continue;
|
||||
}
|
||||
driver_dir = g_dir_open(path, 0, error);
|
||||
if (driver_dir == NULL)
|
||||
return FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user