diff options
author | Vijaikumar M <vmallika@redhat.com> | 2014-08-21 17:07:25 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-09-23 03:12:44 -0700 |
commit | f46f406d3b010fd0ad1a03d5cfe1658904967be0 (patch) | |
tree | 256dd4a1348f33bd8f1d9f43914a22cd20991892 /libglusterfs/src | |
parent | 6fa42a74bd2dd8b0c7e7c6317417d29525c8022b (diff) |
glusterd: Parsing key/value pair with value containing '='.
Parsing key/value pair in the brickinfo file, where value contains '='
would truncate everything after '=' in value.
For example:
A key/value pair
mnt-opts=rw,noatime,allocsize=1MiB,noattr2
is parsed as:
mnt-opts=rw,noatime,allocsize
Change-Id: I4e279c2a356a8a16eb20d4358d7c8a8cc5724b65
BUG: 1145090
Signed-off-by: Vijaikumar M <vmallika@redhat.com>
Reviewed-on: http://review.gluster.org/8507
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Reviewed-by: Rajesh Joseph <rjoseph@redhat.com>
Reviewed-by: Sachin Pandit <spandit@redhat.com>
Reviewed-by: Krishnan Parthasarathi <kparthas@redhat.com>
Tested-by: Krishnan Parthasarathi <kparthas@redhat.com>
Signed-off-by: Sachin Pandit <spandit@redhat.com>
Reviewed-on: http://review.gluster.org/8803
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'libglusterfs/src')
-rw-r--r-- | libglusterfs/src/store.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfs/src/store.c b/libglusterfs/src/store.c index 55a2ab459e2..d6a64d2cdd3 100644 --- a/libglusterfs/src/store.c +++ b/libglusterfs/src/store.c @@ -212,7 +212,7 @@ gf_store_read_and_tokenize (FILE *file, char *str, char **iter_key, goto out; } - value = strtok_r (NULL, "=", &savetok); + value = strtok_r (NULL, "", &savetok); if (!value) { ret = -1; *store_errno = GD_STORE_VALUE_NULL; |