[systemd-commits] src/udev
Kay Sievers
kay at kemper.freedesktop.org
Tue Jul 9 06:49:00 PDT 2013
src/udev/udev-builtin-hwdb.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit beef8df837fb0ef708143b34aa85a897400e8992
Author: Kay Sievers <kay at vrfy.org>
Date: Tue Jul 9 15:47:11 2013 +0200
hwdb: return false if no property is found
diff --git a/src/udev/udev-builtin-hwdb.c b/src/udev/udev-builtin-hwdb.c
index 314587f..f1c0ca9 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 */
More information about the systemd-commits
mailing list