From ab72e06f7bcf6a815424f67181d44e7a1a465846 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Tue, 17 Aug 2010 03:31:36 +0000 Subject: volume creation validation Signed-off-by: Raghavendra Bhat Signed-off-by: Anand V. Avati BUG: 1267 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1267 --- cli/src/cli-cmd-parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c index 40cf9bab5a4..ff98bc6ac36 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; } -- cgit