summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2014-06-27 14:20:17 +0200
committerAnthony G. Basile <blueness@gentoo.org>2014-07-01 07:16:16 -0400
commite17b263727b3f38a5a80ddb58d904e7b3307cc58 (patch)
tree353ac0ff3a5ffaf4f375e7404da87b8535e79ccc
parentcd03d84ff0074d091f1c583d3b2c4471cfeab7d2 (diff)
libudev: fix udev_queue_get_queue_is_empty() logic
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
-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;
}
/**