1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

hwdb: return false if no property is found

This commit is contained in:
Kay Sievers 2013-07-09 15:47:11 +02:00
parent a3f6aa268c
commit beef8df837

View File

@ -178,9 +178,9 @@ static int builtin_hwdb(struct udev_device *dev, int argc, char *argv[], bool te
} else } else
srcdev = dev; srcdev = dev;
if (udev_builtin_hwdb_search(dev, srcdev, subsystem, prefix, filter, test) < 0) if (udev_builtin_hwdb_search(dev, srcdev, subsystem, prefix, filter, test) > 0)
return EXIT_FAILURE; return EXIT_SUCCESS;
return EXIT_SUCCESS; return EXIT_FAILURE;
} }
/* called at udev startup and reload */ /* called at udev startup and reload */