diff options
author | pjd <pjd@FreeBSD.org> | 2007-05-05 18:09:17 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2007-05-05 18:09:17 +0000 |
commit | 5326cfc8d7152339e4530123781c6ad0d0a22261 (patch) | |
tree | 9bab7faeae1114a1c1b54c6a5ec22ee7d9c9235f /sys/geom/geom_disk.c | |
parent | 592f466b1be65f5fb7784dad52457a6d98b4450a (diff) | |
download | FreeBSD-src-5326cfc8d7152339e4530123781c6ad0d0a22261.zip FreeBSD-src-5326cfc8d7152339e4530123781c6ad0d0a22261.tar.gz |
Allow to use ':' in d_ident, which is quite handy character.
Diffstat (limited to 'sys/geom/geom_disk.c')
-rw-r--r-- | sys/geom/geom_disk.c | 3 |
1 files changed, 2 insertions, 1 deletions
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<HH>'. + * We only allow [a-zA-Z0-9-_@#%.:] characters, the rest is converted to 'x<HH>'. */ 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; } |