[packages/dlm] another dlm_stonith_reboot.patch ifx

jajcus jajcus at pld-linux.org
Fri Nov 2 10:03:39 CET 2012


commit 968f440c40e218951a95a8d7576c838569c09a56
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date:   Fri Nov 2 10:02:59 2012 +0100

    another dlm_stonith_reboot.patch ifx
    
    oops… that was even worse

 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 8402d59..0e14cd3 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[0][arg0_l-7], "_reboot")) turn_off=0;
-+	else if (arg0_l>4 && !strcmp(argv[0][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/968f440c40e218951a95a8d7576c838569c09a56



More information about the pld-cvs-commit mailing list