diff options
author | Vijaikumar M <vmallika@redhat.com> | 2014-08-21 17:07:25 +0530 |
---|---|---|
committer | Krishnan Parthasarathi <kparthas@redhat.com> | 2014-08-25 09:02:15 -0700 |
commit | ec257d019cacbe4998cc78b591fd5a212c8cff35 (patch) | |
tree | 62b40e9933f6aa003b785edc6192b49cdab9c1df /libglusterfs | |
parent | b87f92c0eee630690e2b515a7f79c28af6496a5e (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
BUG: 1132451
Change-Id: I756b2fc4b06875267212b1a5c3e91c5a40c6accb
Signed-off-by: Vijaikumar M <vmallika@redhat.com>
Reviewed-on: http://review.gluster.org/8524
Reviewed-by: Sachin Pandit <spandit@redhat.com>
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Krishnan Parthasarathi <kparthas@redhat.com>
Tested-by: Krishnan Parthasarathi <kparthas@redhat.com>
Diffstat (limited to 'libglusterfs')
-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; |