File corosync-init-lockfile-path-error.patch of Package corosync

Index: corosync-2.3.1/init/corosync.in
===================================================================
--- corosync-2.3.1.orig/init/corosync.in
+++ corosync-2.3.1/init/corosync.in
@@ -29,6 +29,7 @@ PATH="/sbin:/bin:/usr/sbin:/usr/bin:@SBI
 success()
 {
 	echo -ne "[  OK  ]\r"
+	rtrn=0
 }
 
 failure()
@@ -106,6 +107,7 @@ start()
 	# they also assume that init scripts will create
 	# required subdirectories for proper operations
 	mkdir -p @LOCALSTATEDIR@/run
+	mkdir -p @LOCALSTATEDIR@/lock/subsys
 
 	if status $prog > /dev/null 2>&1; then
 		success
openSUSE Build Service is sponsored by