mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-22 06:28:35 +07:00
hwdb: return false if no property is found
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
This commit is contained in:
parent
77d68de482
commit
6f85433a3b
@ -178,9 +178,9 @@ static int builtin_hwdb(struct udev_device *dev, int argc, char *argv[], bool te
|
||||
} else
|
||||
srcdev = dev;
|
||||
|
||||
if (udev_builtin_hwdb_search(dev, srcdev, subsystem, prefix, filter, test) < 0)
|
||||
return EXIT_FAILURE;
|
||||
return EXIT_SUCCESS;
|
||||
if (udev_builtin_hwdb_search(dev, srcdev, subsystem, prefix, filter, test) > 0)
|
||||
return EXIT_SUCCESS;
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
/* called at udev startup and reload */
|
||||
|
Loading…
Reference in New Issue
Block a user