summaryrefslogtreecommitdiff
path: root/libudev
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-09-10 01:35:48 +0200
committerKay Sievers <kay.sievers@vrfy.org>2009-09-10 01:35:48 +0200
commit676d294c23cf999ac7d192b058476f91242550c0 (patch)
treebb635c76017bcaecc437593cd8d19cc19a6b5b78 /libudev
parentc26e3f69010573710110d98b8f75bcd1ea5fdac5 (diff)
reorder create_path() and node/link creation to be called in a direct sequence
Diffstat (limited to 'libudev')
-rw-r--r--libudev/libudev-queue-private.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libudev/libudev-queue-private.c b/libudev/libudev-queue-private.c
index e0a8738e0e..d9f7a67d18 100644
--- a/libudev/libudev-queue-private.c
+++ b/libudev/libudev-queue-private.c
@@ -407,10 +407,8 @@ static void update_failed(struct udev_queue_export *udev_queue_export,
switch (state) {
case DEVICE_FAILED:
/* record event in the failed directory */
- if (udev_queue_export->failed_count == 0)
- util_create_path(udev, filename);
udev_queue_export->failed_count++;
-
+ util_create_path(udev, filename);
udev_selinux_setfscreatecon(udev, filename, S_IFLNK);
symlink(udev_device_get_devpath(udev_device), filename);
udev_selinux_resetfscreatecon(udev);