diff options
author | Kay Sievers <kay@vrfy.org> | 2013-07-09 15:47:11 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2013-07-09 15:48:36 +0200 |
commit | beef8df837fb0ef708143b34aa85a897400e8992 (patch) | |
tree | f9f6ff9a197d41dbd51b5ed9fec1a40fb38b701c /src/udev/udev-builtin-hwdb.c | |
parent | a3f6aa268c7d40f67d4e0d427bc26aef773db8ec (diff) | |
download | systemd-beef8df837fb0ef708143b34aa85a897400e8992.tar.gz systemd-beef8df837fb0ef708143b34aa85a897400e8992.tar.bz2 systemd-beef8df837fb0ef708143b34aa85a897400e8992.zip |
hwdb: return false if no property is found
Diffstat (limited to 'src/udev/udev-builtin-hwdb.c')
-rw-r--r-- | src/udev/udev-builtin-hwdb.c | 6 |
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 */ |