]> git.openfabrics.org - ~shefty/ibacm.git/commitdiff
refresh (create temporary patch)
authorSean Hefty <sean.hefty@intel.com>
Fri, 17 Dec 2010 20:07:36 +0000 (12:07 -0800)
committerSean Hefty <sean.hefty@intel.com>
Fri, 17 Dec 2010 20:07:36 +0000 (12:07 -0800)
meta
patches/refresh-temp [new file with mode: 0644]

diff --git a/meta b/meta
index 71c4bd1818e3dc55f79cc544f30a9b5856e3713d..748e4c26509e0825fac6fb09e55e5b2fc28946bc 100644 (file)
--- a/meta
+++ b/meta
@@ -1,10 +1,11 @@
 Version: 1
-Previous: da0c6bbd86647aee44ed968f1e1685b2931eec0d
-Head: 635f1521dbe9fd405d6429a48fb7bd990d312997
+Previous: 742a1d661b743aaf9871c1b67e94abf5120fb8f7
+Head: 38bf8c7653d22d280109485b3adfbc1d799feecd
 Applied:
   lmc: b355854c79a1e446e87684a41663ad5aae258b73
   lid: 1c005908ee6c257f6fa290df8ce8a45e968d07ab
   acme_gid: 160551b2a4bed277f4c81b52ef33a184f43ca783
   range: 635f1521dbe9fd405d6429a48fb7bd990d312997
+  refresh-temp: 38bf8c7653d22d280109485b3adfbc1d799feecd
 Unapplied:
 Hidden:
diff --git a/patches/refresh-temp b/patches/refresh-temp
new file mode 100644 (file)
index 0000000..a73acee
--- /dev/null
@@ -0,0 +1,31 @@
+Bottom: 1ab5f7833d1baaba821d175e19964a67ad69afe5
+Top:    95be46d944a0b8ad21ebe86340c99c1691ee887f
+Author: Sean Hefty <sean.hefty@intel.com>
+Date:   2010-12-17 12:07:36 -0800
+
+Refresh of range
+
+---
+
+diff --git a/src/parse.c b/src/parse.c
+index e90fb09..d1c820f 100644
+--- a/src/parse.c
++++ b/src/parse.c
+@@ -80,8 +80,15 @@ char **parse(char *args, int *count)
+       cpy = malloc(strlen(args) + 1);
+       strcpy(cpy, args);
+-      token = strtok(cpy, "[");
+-      next = strtok(NULL, "]");
++      if (args[0] == '[') {
++              cpy[0] = '\0';
++              token = cpy;
++              next = strtok(cpy + 1, "]");
++      } else {
++              token = strtok(cpy, "[");
++              next = strtok(NULL, "]");
++      }
++
+       if (!next) {
+               str_size = strlen(token) + 1;
+               str_buf = malloc(str_size);