summaryrefslogtreecommitdiff
path: root/udev/udevd.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2010-04-12 16:52:41 +0200
committerKay Sievers <kay.sievers@vrfy.org>2010-04-12 16:52:41 +0200
commit4b06c409350d26af5e6ace0f368d01b80d75438e (patch)
tree10d8291f4e1faf0c008e41c8570297490d45a09d /udev/udevd.c
parent86dc9133f88e8690aa89ccb5a240ff915b1fb69f (diff)
replace "add|change" with "!remove"
Diffstat (limited to 'udev/udevd.c')
-rw-r--r--udev/udevd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev/udevd.c b/udev/udevd.c
index fe3352ceb5..c27b4cd6aa 100644
--- a/udev/udevd.c
+++ b/udev/udevd.c
@@ -168,7 +168,7 @@ static void event_queue_delete(struct event *event)
udev_list_node_remove(&event->node);
/* mark as failed, if "add" event returns non-zero */
- if (event->exitcode != 0 && strcmp(udev_device_get_action(event->dev), "add") == 0)
+ if (event->exitcode != 0 && strcmp(udev_device_get_action(event->dev), "remove") != 0)
udev_queue_export_device_failed(udev_queue_export, event->dev);
else
udev_queue_export_device_finished(udev_queue_export, event->dev);