Skip to contentSkip to conversation

cluster/magma-plugins/sm sm.c

Cluster-devel [email protected] 1 participant 1 message Apr 23, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL4
Changes by: lhh at sourceware.org 2007-04-23 19:24:58

Modified files:
magma-plugins/sm: sm.c

Log message:
Ancillary fix to bug #223907

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/magma-plugins/sm/sm.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.9.2.11&r2=1.9.2.12

magma-plugins/sm/Attic/sm.c +3 -2
@@ -36,7 +36,7 @@
 #include <sys/select.h>
 #include <sys/stat.h>
 
-#define MODULE_DESCRIPTION "CMAN/SM Plugin v1.1.7.3"
+#define MODULE_DESCRIPTION "CMAN/SM Plugin v1.1.7.4"
 #define MODULE_AUTHOR      "Lon Hohberger"
 
 #define DLM_LS_NAME	   "Magma"
@@ -377,7 +377,8 @@
 
 	/* Check for existince of dlm control file so we don't
 	   hang in dlm_acquire_lockspace */
-	if (stat("/dev/dlm-control", &st) < 0)
+	if (stat("/dev/misc/dlm-control", &st) < 0 &&
+	    stat("/dev/dlm-control", &st) < 0)
 		return -1;
 
 	if (p->sockfd >= 0)