From 6f85433a3b17932c3f80ca057adabbe5e3631010 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Tue, 9 Jul 2013 15:47:11 +0200 Subject: hwdb: return false if no property is found Signed-off-by: Anthony G. Basile --- src/udev/udev-builtin-hwdb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/udev/udev-builtin-hwdb.c') diff --git a/src/udev/udev-builtin-hwdb.c b/src/udev/udev-builtin-hwdb.c index 314587f2bb..f1c0ca9cb1 100644 --- a/src/udev/udev-builtin-hwdb.c +++ b/src/udev/udev-builtin-hwdb.c @@ -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 */ -- cgit v1.2.3-54-g00ecf