[packages/dlm] dlm_stonith_reboot.patch fix

jajcus jajcus at pld-linux.org
Fri Nov 2 09:49:15 CET 2012


commit 813a2aaab8a1d89bc100cf8862d0c9b3478ca007
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date:   Fri Nov 2 09:49:04 2012 +0100

    dlm_stonith_reboot.patch fix

 dlm_stonith_reboot.patch | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/dlm_stonith_reboot.patch b/dlm_stonith_reboot.patch
index 97d1ace..8402d59 100644
--- a/dlm_stonith_reboot.patch
+++ b/dlm_stonith_reboot.patch
@@ -16,8 +16,8 @@ diff -dur dlm-3.99.5.orig/fence/stonith_helper.c dlm-3.99.5/fence/stonith_helper
 +	int arg0_l;
 +
 +	arg0_l = strlen(argv[0]);
-+	if (arg0_l>7 && !strcmp(argv[arg0_l-7], "_reboot")) turn_off=0;
-+	else if (arg0_l>4 && !strcmp(argv[arg0_l-4], "_off")) turn_off=1;
++	if (arg0_l>7 && !strcmp(argv[0][arg0_l-7], "_reboot")) turn_off=0;
++	else if (arg0_l>4 && !strcmp(argv[0][arg0_l-4], "_off")) turn_off=1;
  
  	if (argc > 1) {
  		while ((c = getopt(argc, argv, "n:t:")) != -1) {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dlm.git/commitdiff/813a2aaab8a1d89bc100cf8862d0c9b3478ca007



More information about the pld-cvs-commit mailing list