]> err.no Git - systemd/commitdiff
libudev: queue - use lstat() to check existence of symlink
authorKay Sievers <kay.sievers@vrfy.org>
Wed, 4 Mar 2009 22:32:16 +0000 (23:32 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Wed, 4 Mar 2009 22:32:16 +0000 (23:32 +0100)
configure.ac
udev/lib/libudev-queue.c

index 5b2d9207218b132695898ed358b93099dbb158fb..022c4cb011578110db31f0c6f660c576e2fc678e 100644 (file)
@@ -16,7 +16,7 @@ test "$prefix" = NONE && test "$exec_prefix" = NONE && exec_prefix=
 
 dnl /* libudev version */
 LIBUDEV_LT_CURRENT=0
-LIBUDEV_LT_REVISION=9
+LIBUDEV_LT_REVISION=10
 LIBUDEV_LT_AGE=0
 AC_SUBST(LIBUDEV_LT_CURRENT)
 AC_SUBST(LIBUDEV_LT_REVISION)
index 51878dab67d8e59ba9778f9842f9dfa8cde22bd4..7ec22370104830db6fe88b5589b3bad7ad5f5029 100644 (file)
@@ -194,7 +194,7 @@ int udev_queue_get_seqnum_is_finished(struct udev_queue *udev_queue, unsigned lo
        }
        snprintf(filename, sizeof(filename), "%s/.udev/queue/%llu",
                 udev_get_dev_path(udev_queue->udev), seqnum);
-       if (stat(filename, &statbuf) == 0)
+       if (lstat(filename, &statbuf) == 0)
                return 0;
        dbg(udev_queue->udev, "seqnum: %llu finished\n", seqnum);
        return 1;