OSDN Git Service

'#' is not able to use in container name.
authorHdeyuki Niwa <niwa.hideyuki@jp.fujitsu.com>
Sun, 2 Feb 2014 01:31:56 +0000 (10:31 +0900)
committerHdeyuki Niwa <niwa.hideyuki@jp.fujitsu.com>
Sun, 2 Feb 2014 01:31:56 +0000 (10:31 +0900)
Because '#' can not be used in network host name, it can not be used in LXCF container name, too.

lxcf/lib/lxcf-parmchk-cname
lxcf/package/SOURCES/lxcf-0.1.tar.gz

index 3d86a6a..a521895 100755 (executable)
@@ -35,7 +35,7 @@ if (argc != 2) :
 parm = args[1]
 
 for c in parm :
-  if c.isdigit() or c.isalpha() or (c == '-') or (c == '_') or (c == '#') : 
+  if c.isdigit() or c.isalpha() or (c == '-') or (c == '_')  : 
     continue
   else:
     exit(1)
index 3deba2b..d6b57af 100644 (file)
Binary files a/lxcf/package/SOURCES/lxcf-0.1.tar.gz and b/lxcf/package/SOURCES/lxcf-0.1.tar.gz differ