]> git.pld-linux.org Git - packages/dlm.git/commitdiff
dlm_stonith_reboot.patch fix
authorJacek Konieczny <j.konieczny@eggsoft.pl>
Fri, 2 Nov 2012 08:49:04 +0000 (09:49 +0100)
committerJacek Konieczny <jajcus@jajcus.net>
Fri, 2 Nov 2012 08:49:04 +0000 (09:49 +0100)
dlm_stonith_reboot.patch

index 97d1ace661ed6c385e99170d5e1bbb21002c0f5e..8402d597618770f8568c5fbbfa629817c7bf4f46 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[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) {
This page took 0.046752 seconds and 4 git commands to generate.