diff options
-rw-r--r-- | cli/src/cli-cmd-parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c index 40cf9bab5..ff98bc6ac 100644 --- a/cli/src/cli-cmd-parser.c +++ b/cli/src/cli-cmd-parser.c @@ -79,7 +79,7 @@ cli_cmd_volume_create_parse (const char **words, int wordcount, dict_t **options goto out; for (i = 0; i < strlen (volname); i++) - if (!isalnum (volname[i])) + if (!isalnum (volname[i]) && (volname[i] != '_') && (volname[i] != '-')) goto out; } |