RHEL5 - qdisk: fix sysfs path diving
Lon Hohberger
lon@fedoraproject.org
Fri Sep 5 16:19:00 GMT 2008
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=a37692ca2e979b71012653676141d807a307a217
Commit: a37692ca2e979b71012653676141d807a307a217
Parent: 61fe6ce54bb67fd0693a9342a70bbc4913a2c204
Author: Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate: Fri Aug 15 19:29:32 2008 +0200
Committer: Lon Hohberger <lhh@redhat.com>
CommitterDate: Fri Sep 5 10:59:53 2008 -0400
qdisk: fix sysfs path diving
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
cman/qdisk/scandisk.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/cman/qdisk/scandisk.c b/cman/qdisk/scandisk.c
index ac06661..428891c 100644
--- a/cman/qdisk/scandisk.c
+++ b/cman/qdisk/scandisk.c
@@ -654,6 +654,9 @@ static int scansysfs(struct devlisthead *devlisthead, char *path, int level)
return -1;
if (!lstat(newpath, &sb)) {
+ if (S_ISDIR(sb.st_mode))
+ if (scansysfs(devlisthead, newpath, 1) < 0)
+ return -1;
if (S_ISLNK(sb.st_mode))
continue;
More information about the Cluster-cvs
mailing list