summaryrefslogtreecommitdiff
path: root/udev/lib
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-03-04 23:32:16 +0100
committerKay Sievers <kay.sievers@vrfy.org>2009-03-04 23:32:16 +0100
commita5d8cffad9020247c9ba81a9e0a9b9cee5c4a4d5 (patch)
treec190a9891c9c2aa3b3c9550af418848c50cb6caa /udev/lib
parent56a7cb127177f4022e5d2df3e51d7a5d7a297da5 (diff)
libudev: queue - use lstat() to check existence of symlink
Diffstat (limited to 'udev/lib')
-rw-r--r--udev/lib/libudev-queue.c2
1 files changed, 1 insertions, 1 deletions
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;