summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-07-09 15:47:11 +0200
committerKay Sievers <kay@vrfy.org>2013-07-09 15:48:36 +0200
commitbeef8df837fb0ef708143b34aa85a897400e8992 (patch)
treef9f6ff9a197d41dbd51b5ed9fec1a40fb38b701c /src
parenta3f6aa268c7d40f67d4e0d427bc26aef773db8ec (diff)
hwdb: return false if no property is found
Diffstat (limited to 'src')
-rw-r--r--src/udev/udev-builtin-hwdb.c6
1 files changed, 3 insertions, 3 deletions
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 */