chiark / gitweb /
fix compilation with --enable-debug
[elogind.git] / libudev / libudev-queue-private.c
index e0a8738..6109837 100644 (file)
@@ -45,9 +45,9 @@
 #include <fcntl.h>
 #include <dirent.h>
 #include <limits.h>
+#include <errno.h>
 #include <sys/stat.h>
 #include <sys/types.h>
-#include <assert.h>
 
 #include "libudev.h"
 #include "libudev-private.h"
@@ -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);