From e43920cab790ad27a195764d8a2d94cb19bbbfc2 Mon Sep 17 00:00:00 2001 From: Krishnan Parthasarathi Date: Sat, 19 May 2012 23:40:13 +0530 Subject: locks: Fixed opt arg parsing in clear-locks Change-Id: I470fd21d5d53e3c6f0bd2a4f84c6327532e18559 BUG: 823151 Signed-off-by: Krishnan Parthasarathi Reviewed-on: http://review.gluster.com/3391 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/features/locks/src/clear.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'xlators/features/locks/src/clear.c') diff --git a/xlators/features/locks/src/clear.c b/xlators/features/locks/src/clear.c index a4e235886..5533c6bdc 100644 --- a/xlators/features/locks/src/clear.c +++ b/xlators/features/locks/src/clear.c @@ -141,8 +141,9 @@ clrlk_parse_args (const char* cmd, clrlk_args *args) if ((args->type == CLRLK_TYPE_MAX) || (args->kind == CLRLK_KIND_MAX)) goto out; - /*optional args*/ - tok = strtok_r (NULL, ".", &sptr); + /*optional args, neither range nor basename can 'legally' contain + * "/" in them*/ + tok = strtok_r (NULL, "/", &sptr); if (tok) args->opts = gf_strdup (tok); -- cgit