summaryrefslogtreecommitdiffstats
path: root/cli/src/cli-cmd-parser.c
diff options
context:
space:
mode:
authorPavan T C <tcp@gluster.com>2011-03-28 03:50:29 +0000
committerVijay Bellur <vijay@dev.gluster.com>2011-03-29 04:14:35 -0700
commitb65f54c9aa1e3405b731769e56460592ba69ed60 (patch)
tree68be148f4f5d5b31d90a4b7062aa0f3072695942 /cli/src/cli-cmd-parser.c
parentb691214fd9114e2b4c7d419ef06aedd28614127a (diff)
Loosen restrictions on hostnames
Signed-off-by: Pavan T C <tcp@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 2249 (Problems with hostname validation) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2249
Diffstat (limited to 'cli/src/cli-cmd-parser.c')
-rw-r--r--cli/src/cli-cmd-parser.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c
index 11b9cbcb98b..66e5643fcb9 100644
--- a/cli/src/cli-cmd-parser.c
+++ b/cli/src/cli-cmd-parser.c
@@ -97,6 +97,10 @@ cli_cmd_bricks_parse (const char **words, int wordcount, int brick_index,
GF_FREE (host_name);
goto out;
}
+ if (!valid_host_name(host_name, strlen(host_name))) {
+ cli_out ("internet address '%s' does not comform to "
+ "standards", host_name);
+ }
GF_FREE (host_name);
tmp_list = gf_strdup (brick_list + 1);
if (free_list_ptr) {