qemu-socket: allow hostnames starting with a digit
commit391b7b9701ba3318e890ec0cba97a3c654bfa667
authorJán Tomko <jtomko@redhat.com>
Mon, 3 Jun 2013 15:54:55 +0000 (3 17:54 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 18 Jun 2013 09:42:45 +0000 (18 11:42 +0200)
tree255782681df5ba383b62a96fcffa6d3c59552c40
parentafd59989db90683fa127fec501d2633bcfbd6379
qemu-socket: allow hostnames starting with a digit

According to RFC 1123 [1], hostnames can start with a digit too.

[1] http://tools.ietf.org/html/rfc1123#page-13

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Cc: qemu-stable@nongnu.org
[Use strspn, not strcspn. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
util/qemu-sockets.c