X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=libsysfs%2Fsysfs_utils.c;h=bd7f99ae15d6c0417f492e7e72ef981bf8de3af3;hb=7a551dc35580988d13ff8e6e3e37398ac779181a;hp=c5558a43a1e9db1d172aad23f8f72cfc7957ef92;hpb=197178360f5c4253aeb743b32224125e58e2fd5d;p=elogind.git diff --git a/libsysfs/sysfs_utils.c b/libsysfs/sysfs_utils.c index c5558a43a..bd7f99ae1 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; }