char **args, *info[MAX_ARGS_SIZE], *name = argv[1];
int stat;
- if (!ValidName(name))
- return DM_NORMAL;
+ /* Can't use ValidName() because spaces are allowed in container names */
+ if (IS_EMPTY(name))
+ {
+ Put_message("Please use a non-empty name.");
+ return DM_NORMAL;
+ }
+
+ if (strchr(name, '*') || strchr(name, '?'))
+ {
+ Put_message("Wildcards not accepted here.");
+ return DM_NORMAL;
+ }
/* Check if this cluster already exists. */
if ((stat = do_mr_query("get_container", 1, &name, NULL, NULL))