From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HMS7l-0001mt-Sz for qemu-devel@nongnu.org; Wed, 28 Feb 2007 11:57:53 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HMS7k-0001mg-HS for qemu-devel@nongnu.org; Wed, 28 Feb 2007 11:57:53 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMS7k-0001md-BJ for qemu-devel@nongnu.org; Wed, 28 Feb 2007 11:57:52 -0500 Received: from partizan.velesys.com ([213.184.230.195]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HMS7j-0007XA-PX for qemu-devel@nongnu.org; Wed, 28 Feb 2007 11:57:52 -0500 Received: from localhost (partizan [10.0.0.24]) by partizan.velesys.com (paritzan.velesys.com) with ESMTP id EE424D63267 for ; Wed, 28 Feb 2007 19:01:31 +0200 (EET) Received: from partizan.velesys.com ([10.0.0.24]) by localhost (partizan.velesys.com [10.0.0.24]) (amavisd-new, port 10024) with ESMTP id 4RFPMZPs6sds for ; Wed, 28 Feb 2007 19:01:31 +0200 (EET) Received: from localhost.localdomain (xps.velesys.com [10.0.0.92]) by partizan.velesys.com (paritzan.velesys.com) with ESMTP id 11C1DD63265 for ; Wed, 28 Feb 2007 19:01:31 +0200 (EET) Date: Wed, 28 Feb 2007 18:45:02 +0300 From: "Kirill A. Shutemov" Message-ID: <20070228154502.GA8079@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tsOsTdHNUZQcU9Ye" Content-Disposition: inline Subject: [Qemu-devel] [BUG] [PATCH] Syscalls recv and recvfrom fix Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --tsOsTdHNUZQcU9Ye Content-Type: multipart/mixed; boundary="3MwIy2ne0vdjdPXF" Content-Disposition: inline --3MwIy2ne0vdjdPXF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Argument name typo fixed. Patch in the attachment. --3MwIy2ne0vdjdPXF Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="syscall_recv_and_recv_fix.patch" diff --git a/qemu/linux-user/syscall.c b/qemu/linux-user/syscall.c index f3f97b0..80684de 100644 --- a/qemu/linux-user/syscall.c +++ b/qemu/linux-user/syscall.c @@ -2912,12 +2912,12 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3, #endif #ifdef TARGET_NR_recv case TARGET_NR_recv: - ret = do_recvfrom(arg1, arg1, arg3, arg4, 0, 0); + ret = do_recvfrom(arg1, arg2, arg3, arg4, 0, 0); break; #endif #ifdef TARGET_NR_recvfrom case TARGET_NR_recvfrom: - ret = do_recvfrom(arg1, arg1, arg3, arg4, arg5, arg6); + ret = do_recvfrom(arg1, arg2, arg3, arg4, arg5, arg6); break; #endif #ifdef TARGET_NR_recvmsg --3MwIy2ne0vdjdPXF-- --tsOsTdHNUZQcU9Ye Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFF5aN+bWYnhzC5v6oRAkDZAJwP4fzq7XoJNyWpES5i2J2pNyhBvQCePZpE 5PpVPDN4bS6+RsgTMi0uWkE= =QHHM -----END PGP SIGNATURE----- --tsOsTdHNUZQcU9Ye--