diff options
author | Krishnan Parthasarathi <kp@gluster.com> | 2012-05-19 23:40:13 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2012-05-24 11:08:08 -0700 |
commit | ed67fbf9d22a8099155795a5482c219f488992c3 (patch) | |
tree | 9f26fb3d102e138e0457030aec7c710a19f3b9f2 /xlators/features | |
parent | b86436da7e0de47282c46cd14989e4cbaad0501d (diff) |
locks: Fixed opt arg parsing in clear-locks
Change-Id: I470fd21d5d53e3c6f0bd2a4f84c6327532e18559
BUG: 823151
Signed-off-by: Krishnan Parthasarathi <kp@gluster.com>
Reviewed-on: http://review.gluster.com/3429
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'xlators/features')
-rw-r--r-- | xlators/features/locks/src/clear.c | 5 |
1 files changed, 3 insertions, 2 deletions
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); |