From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59378) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wifzy-0002q2-TG for qemu-devel@nongnu.org; Fri, 09 May 2014 04:17:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wifzt-00017D-Pr for qemu-devel@nongnu.org; Fri, 09 May 2014 04:17:42 -0400 Received: from afflict.kos.to ([92.243.29.197]:51885) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wifzt-000177-Hy for qemu-devel@nongnu.org; Fri, 09 May 2014 04:17:37 -0400 Date: Fri, 9 May 2014 11:17:36 +0300 From: Riku Voipio Message-ID: <20140509081736.GA1231@afflict.kos.to> References: <1399345485-13037-1-git-send-email-eswierk@skyportsystems.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1399345485-13037-1-git-send-email-eswierk@skyportsystems.com> Subject: Re: [Qemu-devel] [PATCH] linux-user: Return correct errno for unsupported netlink socket List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ed Swierk Cc: qemu-devel@nongnu.org Hi, On Mon, May 05, 2014 at 08:04:45PM -0700, Ed Swierk wrote: > This fixes "Cannot open audit interface - aborting." when the > EAFNOSUPPORT errno differs between the target and host > architectures (e.g. mips target and x86_64 host). Thanks, looks good - applied to linux-user tree. > Signed-off-by: Ed Swierk > --- > linux-user/syscall.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/linux-user/syscall.c b/linux-user/syscall.c > index 9864813..271d28a 100644 > --- a/linux-user/syscall.c > +++ b/linux-user/syscall.c > @@ -1861,7 +1861,7 @@ static abi_long do_socket(int domain, int type, int protocol) > } > > if (domain == PF_NETLINK) > - return -EAFNOSUPPORT; /* do not NETLINK socket connections possible */ > + return -TARGET_EAFNOSUPPORT; > ret = get_errno(socket(domain, type, protocol)); > if (ret >= 0) { > ret = sock_flags_fixup(ret, target_type); > -- > 1.8.3.2 >