From e780df78fae4f69923df20c14f15b66dc918a61b Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Fri, 20 Dec 2013 15:43:08 +0530 Subject: tests: Add sanity check for mount-options Change-Id: Ica246f99b8cdb6c0cf0e9143f50be056e37d3b7f BUG: 1045309 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/6550 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- glusterfsd/src/glusterfsd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'glusterfsd') 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; } -- cgit