revert the "read symlink as device patch"

It's covered by libsysfs now.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
This commit is contained in:
Kay Sievers 2005-11-02 04:04:19 +01:00
parent 7a551dc355
commit 8ebe9547a8

View 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;
}