chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
586e1a3
)
libsysfs: accept sysmlinks to directories instead of real directories
author
Kay Sievers
<kay.sievers@suse.de>
Wed, 19 Oct 2005 21:59:54 +0000
(23:59 +0200)
committer
Kay Sievers
<kay.sievers@suse.de>
Wed, 19 Oct 2005 21:59:54 +0000
(23:59 +0200)
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>
libsysfs/sysfs_utils.c
patch
|
blob
|
history
diff --git
a/libsysfs/sysfs_utils.c
b/libsysfs/sysfs_utils.c
index c5558a43a1e9db1d172aad23f8f72cfc7957ef92..bd7f99ae15d6c0417f492e7e72ef981bf8de3af3 100644
(file)
--- 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 ((
l
stat(path, &astats)) != 0) {
+ if ((stat(path, &astats)) != 0) {
dprintf("stat() failed\n");
return 1;
}