]> git.pld-linux.org Git - packages/dlm.git/commitdiff
another dlm_stonith_reboot.patch ifx
authorJacek Konieczny <j.konieczny@eggsoft.pl>
Fri, 2 Nov 2012 09:02:59 +0000 (10:02 +0100)
committerJacek Konieczny <jajcus@jajcus.net>
Fri, 2 Nov 2012 09:03:21 +0000 (10:03 +0100)
oops… that was even worse

dlm_stonith_reboot.patch

index 8402d597618770f8568c5fbbfa629817c7bf4f46..0e14cd36ddeb42d5a7d314874bfaea24096a7431 100644 (file)
@@ -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) {
This page took 0.080465 seconds and 4 git commands to generate.