teknoraver / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone

Blame 0014-libudev-fix-move_later-comparison.patch

Harald Hoyer d4ee25
From 3b93bf5a35b0bb7111754fbae75e7654b775506d Mon Sep 17 00:00:00 2001
Harald Hoyer d4ee25
From: Lukas Nykryn <lnykryn@redhat.com>
Harald Hoyer d4ee25
Date: Fri, 13 Sep 2013 14:12:54 +0200
Harald Hoyer d4ee25
Subject: [PATCH] libudev: fix move_later comparison
Harald Hoyer d4ee25
Harald Hoyer d4ee25
At the beginning move_later is set to -1, but it is set to different
Harald Hoyer d4ee25
value only if expression !move_later is true.
Harald Hoyer d4ee25
---
Harald Hoyer d4ee25
 src/libudev/libudev-enumerate.c | 2 +-
Harald Hoyer d4ee25
 1 file changed, 1 insertion(+), 1 deletion(-)
Harald Hoyer d4ee25
Harald Hoyer d4ee25
diff --git a/src/libudev/libudev-enumerate.c b/src/libudev/libudev-enumerate.c
Harald Hoyer d4ee25
index bc1e37d..8146f27 100644
Harald Hoyer d4ee25
--- a/src/libudev/libudev-enumerate.c
Harald Hoyer d4ee25
+++ b/src/libudev/libudev-enumerate.c
Harald Hoyer d4ee25
@@ -300,7 +300,7 @@ _public_ struct udev_list_entry *udev_enumerate_get_list_entry(struct udev_enume
Harald Hoyer d4ee25
                         /* skip to be delayed devices, and move the to
Harald Hoyer d4ee25
                          * the point where the prefix changes. We can
Harald Hoyer d4ee25
                          * only move one item at a time. */
Harald Hoyer d4ee25
-                        if (!move_later) {
Harald Hoyer d4ee25
+                        if (move_later == -1) {
Harald Hoyer d4ee25
                                 move_later_prefix = devices_delay_later(udev_enumerate->udev, entry->syspath);
Harald Hoyer d4ee25
 
Harald Hoyer d4ee25
                                 if (move_later_prefix > 0) {