From a5d8cffad9020247c9ba81a9e0a9b9cee5c4a4d5 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Wed, 4 Mar 2009 23:32:16 +0100 Subject: libudev: queue - use lstat() to check existence of symlink --- udev/lib/libudev-queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'udev/lib') diff --git a/udev/lib/libudev-queue.c b/udev/lib/libudev-queue.c index 51878dab67..7ec2237010 100644 --- a/udev/lib/libudev-queue.c +++ b/udev/lib/libudev-queue.c @@ -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; -- cgit v1.2.3-54-g00ecf