diff options
author | Kay Sievers <kay.sievers@suse.de> | 2005-11-02 04:04:19 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2005-11-02 04:04:19 +0100 |
commit | 8ebe9547a81408061ecf3571d31117a18c1810b8 (patch) | |
tree | f15a1a93e796f9aeff028e5a2cc1b78aa95e1bd5 | |
parent | 7a551dc35580988d13ff8e6e3e37398ac779181a (diff) |
revert the "read symlink as device patch"
It's covered by libsysfs now.
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
-rw-r--r-- | libsysfs/sysfs_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsysfs/sysfs_utils.c b/libsysfs/sysfs_utils.c index bd7f99ae15..c5558a43a1 100644 --- a/libsysfs/sysfs_utils.c +++ b/libsysfs/sysfs_utils.c @@ -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; } |