chiark / gitweb /
revert the "read symlink as device patch"
authorKay Sievers <kay.sievers@suse.de>
Wed, 2 Nov 2005 03:04:19 +0000 (04:04 +0100)
committerKay Sievers <kay.sievers@suse.de>
Wed, 2 Nov 2005 03:04:19 +0000 (04:04 +0100)
It's covered by libsysfs now.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
libsysfs/sysfs_utils.c

index bd7f99a..c5558a4 100644 (file)
@@ -233,7 +233,7 @@ int sysfs_path_is_dir(const char *path)
                errno = EINVAL;
                return 1;
        }
-       if ((stat(path, &astats)) != 0) {
+       if ((lstat(path, &astats)) != 0) {
                dprintf("stat() failed\n");
                return 1;
        }