diff options
Diffstat (limited to 'xlators/features/locks/src/clear.c')
| -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 a4e235886e2..5533c6bdcb9 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);  | 
