diff options
author | Kay Sievers <kay.sievers@suse.de> | 2005-10-19 23:59:54 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2005-10-19 23:59:54 +0200 |
commit | daff48063eb2cb547d24a547684543ee991f0815 (patch) | |
tree | 35f09f7e18fd121aa280154d7868c250873f6358 /libsysfs | |
parent | 586e1a37eff1ec9b69c0d2953014e7291fb875b5 (diff) |
libsysfs: accept sysmlinks to directories instead of real directories
Recent changes to the sysfs layout introduced class-devices pointed to
by a symlink, instead of the real object at that location.
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'libsysfs')
-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 c5558a43a1..bd7f99ae15 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 ((lstat(path, &astats)) != 0) { + if ((stat(path, &astats)) != 0) { dprintf("stat() failed\n"); return 1; } |