summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2014-06-27 14:20:17 +0200
committerKay Sievers <kay@vrfy.org>2014-06-27 14:21:29 +0200
commit45e60962b7965f32755a76b79a28126299aac149 (patch)
tree3d6a04462926b7f4f00e934d7ebfbb8ec8246cff
parentd0c8806d4abf863baae1e3f796db674d57a67686 (diff)
libudev: fix udev_queue_get_queue_is_empty() logic
-rw-r--r--src/libudev/libudev-queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libudev/libudev-queue.c b/src/libudev/libudev-queue.c
index eb0e096f84..c32a7ef709 100644
--- a/src/libudev/libudev-queue.c
+++ b/src/libudev/libudev-queue.c
@@ -175,7 +175,7 @@ _public_ int udev_queue_get_udev_is_active(struct udev_queue *udev_queue)
**/
_public_ int udev_queue_get_queue_is_empty(struct udev_queue *udev_queue)
{
- return access("/run/udev/queue", F_OK) >= 0;
+ return access("/run/udev/queue", F_OK) < 0;
}
/**