From 5326cfc8d7152339e4530123781c6ad0d0a22261 Mon Sep 17 00:00:00 2001 From: pjd Date: Sat, 5 May 2007 18:09:17 +0000 Subject: Allow to use ':' in d_ident, which is quite handy character. --- sys/geom/geom_disk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/geom/geom_disk.c') diff --git a/sys/geom/geom_disk.c b/sys/geom/geom_disk.c index a0d54e1..725a7d0 100644 --- a/sys/geom/geom_disk.c +++ b/sys/geom/geom_disk.c @@ -399,7 +399,7 @@ g_disk_destroy(void *ptr, int flag) } /* - * We only allow [a-zA-Z0-9-_@#%.] characters, the rest is converted to 'x'. + * We only allow [a-zA-Z0-9-_@#%.:] characters, the rest is converted to 'x'. */ static void g_disk_ident_adjust(char *ident, size_t size) @@ -428,6 +428,7 @@ g_disk_ident_adjust(char *ident, size_t size) case '#': case '%': case '.': + case ':': newid[len++] = *p; break; } -- cgit v1.1