diff options
| author | Krishnan Parthasarathi <kp@gluster.com> | 2012-05-19 23:40:13 +0530 | 
|---|---|---|
| committer | Vijay Bellur <vijay@gluster.com> | 2012-05-21 09:57:09 -0700 | 
| commit | e43920cab790ad27a195764d8a2d94cb19bbbfc2 (patch) | |
| tree | db01a98bc22adba5eaf6fe53d1f61f51b6a961e7 | |
| parent | 16f9cf846e028d8d24138c6b34bf149b4e4ed2bf (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/3391
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
| -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);  | 
