summaryrefslogtreecommitdiffstats
path: root/glusterfsd
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2013-12-20 15:43:08 +0530
committerVijay Bellur <vbellur@redhat.com>2014-01-29 01:55:00 -0800
commite780df78fae4f69923df20c14f15b66dc918a61b (patch)
treec3b8c0c01dd113564a157f55800620945e2a2aca /glusterfsd
parent3ab5d0672c7ef8a46e1b711e1593748bed407d32 (diff)
tests: Add sanity check for mount-options
Change-Id: Ica246f99b8cdb6c0cf0e9143f50be056e37d3b7f BUG: 1045309 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/6550 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'glusterfsd')
-rw-r--r--glusterfsd/src/glusterfsd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c
index d3234e8bca3..c8ffdf18b3e 100644
--- a/glusterfsd/src/glusterfsd.c
+++ b/glusterfsd/src/glusterfsd.c
@@ -733,6 +733,7 @@ parse_opts (int key, char *arg, struct argp_state *state)
char *tmp_str = NULL;
char *port_str = NULL;
struct passwd *pw = NULL;
+ int ret = 0;
cmd_args = state->input;
@@ -908,8 +909,8 @@ parse_opts (int key, char *arg, struct argp_state *state)
case ARGP_NEGATIVE_TIMEOUT_KEY:
d = 0.0;
- gf_string2double (arg, &d);
- if (!(d < 0.0)) {
+ ret = gf_string2double (arg, &d);
+ if ((ret == 0) && !(d < 0.0)) {
cmd_args->fuse_negative_timeout = d;
break;
}