[systemd-commits] src/libudev

Kay Sievers kay at kemper.freedesktop.org
Fri Jun 27 05:21:57 PDT 2014


 src/libudev/libudev-queue.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 45e60962b7965f32755a76b79a28126299aac149
Author: Kay Sievers <kay at vrfy.org>
Date:   Fri Jun 27 14:20:17 2014 +0200

    libudev: fix udev_queue_get_queue_is_empty() logic

diff --git a/src/libudev/libudev-queue.c b/src/libudev/libudev-queue.c
index eb0e096..c32a7ef 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;
 }
 
 /**



More information about the systemd-commits mailing list