From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=59976 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcxRj-0000IZ-7W for qemu-devel@nongnu.org; Wed, 12 Jan 2011 04:56:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PcxRi-00080C-63 for qemu-devel@nongnu.org; Wed, 12 Jan 2011 04:56:51 -0500 Received: from mail-wy0-f173.google.com ([74.125.82.173]:35117) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PcxRh-0007zs-TQ for qemu-devel@nongnu.org; Wed, 12 Jan 2011 04:56:50 -0500 Received: by wyg36 with SMTP id 36so404002wyg.4 for ; Wed, 12 Jan 2011 01:56:49 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: Date: Wed, 12 Jan 2011 09:56:48 +0000 Message-ID: Subject: Re: [Qemu-devel] Re: [PATCH] slirp/tftp.c: fix mode field From: Stefan Hajnoczi Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sergei Gavrikov Cc: QEMU Developers On Wed, Jan 12, 2011 at 7:22 AM, Sergei Gavrikov wrote: > diff --git a/slirp/tftp.c b/slirp/tftp.c > index 55e4692..a455ad1 100644 > --- a/slirp/tftp.c > +++ b/slirp/tftp.c > @@ -311,7 +311,7 @@ static void tftp_handle_rrq(Slirp *slirp, struct tftp= _t *tp, int pktlen) > =A0 =A0 return; > =A0 } > > - =A0if (memcmp(&tp->x.tp_buf[k], "octet\0", 6) !=3D 0) { > + =A0if (strcasecmp((const char *)&tp->x.tp_buf[k], "octet") !=3D 0) { > =A0 =A0 =A0 tftp_send_error(spt, 4, "Unsupported transfer mode", tp); > =A0 =A0 =A0 return; > =A0 } According to RFC 2349 the "tsize" option is also case-insensitive. Want to include a fix for that in this patch? Stefan