summaryrefslogtreecommitdiff
path: root/udev/lib/libudev-util.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-10-01 13:57:39 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-10-01 13:57:39 +0200
commitcabfd8d0b487b856a2a41b9595e310e63674b99f (patch)
tree5b2d1d5d5c1be824e8c95c1cb44c1e13d99642dc /udev/lib/libudev-util.c
parent62b9dfb62255c5b07f1356eee423aff18d6addaa (diff)
libudev: enumerate - ignore regular files while scanning
Diffstat (limited to 'udev/lib/libudev-util.c')
-rw-r--r--udev/lib/libudev-util.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/udev/lib/libudev-util.c b/udev/lib/libudev-util.c
index 0e5bc37d43..55bac9a476 100644
--- a/udev/lib/libudev-util.c
+++ b/udev/lib/libudev-util.c
@@ -64,17 +64,12 @@ ssize_t util_get_sys_driver(struct udev *udev, const char *syspath, char *driver
int util_resolve_sys_link(struct udev *udev, char *syspath, size_t size)
{
- struct stat statbuf;
char link_target[UTIL_PATH_SIZE];
int len;
int i;
int back;
- if (lstat(syspath, &statbuf) < 0)
- return -1;
- if (!S_ISLNK(statbuf.st_mode))
- return -1;
len = readlink(syspath, link_target, sizeof(link_target));
if (len <= 0)
return -1;