Error #117
closedBMX6 don't support non alphanumeric characters in hostname
Description
A linux hostname can contain special characters like . or _
But bmx6 crashes if hostname is not alphanumeric.
Updated by Axel Neumann almost 13 years ago
- Status changed from Nou to Resolt
- Priority changed from Normal to Baixa
- % Done changed from 0 to 100
I've played with hostname command and checked wikipedia
http://en.wikipedia.org/wiki/Hostname#Restrictions_on_valid_host_names
which says mainly:
Anything from 0-9, a-z, A-Z, '-', and '.' for a hostname is ok
Particularly '_' is illegal (also when testing with hostname)
Pretty much as it is in bmx6:
http://bmx6.net/projects/bmx6/repository/revisions/master/entry/tools.c#L119
(I know, c=='-' must not be checked twice,... but apart from that)
The main difference to rfc1123 is the total length which must be below 32 characters (instead of 255).
I should consider this 255 character limitation with the next bigger bmx6 compatibility switch because simply increasing this number would mean transferring mostly zeros in the description if the hostname is shorter.
Updated by Roger Pueyo Centelles over 6 years ago
- Status changed from Resolt to Tancat