]> git.proxmox.com Git - qemu.git/commit
qemu-socket: allow hostnames starting with a digit
authorJán Tomko <jtomko@redhat.com>
Mon, 3 Jun 2013 15:54:55 +0000 (17:54 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 18 Jun 2013 17:51:46 +0000 (12:51 -0500)
commit6c8cf5fd02430ea004e3291524163afda6740866
tree81efa24fca7f2765a0f74a2b8ea2bbe4f1d2cd91
parentce4e8f0d4cf6bc9f0850410730b53b37c799ae87
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>
(cherry picked from commit 391b7b9701ba3318e890ec0cba97a3c654bfa667)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
util/qemu-sockets.c