This commit is contained in:
illiliti
2020-07-17 04:48:15 +03:00
parent 09dbf27a07
commit 8b7689302d
+1 -1
View File
@@ -525,7 +525,7 @@ UDEV_EXPORT struct udev_device *udev_device_new_from_subsystem_sysname(struct ud
for (i = 0; fmt[i]; i++) {
snprintf(path, sizeof(path), fmt[i], subsystem, sysname);
if (access(path, R_OK)) {
if (access(path, R_OK) == 0) {
return udev_device_new_from_syspath(udev, path);
}
}