From: Riku Voipio <riku.voipio@iki.fi>
To: Ed Swierk <eswierk@skyportsystems.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] linux-user: Return correct errno for unsupported netlink socket
Date: Fri, 9 May 2014 11:17:36 +0300 [thread overview]
Message-ID: <20140509081736.GA1231@afflict.kos.to> (raw)
In-Reply-To: <1399345485-13037-1-git-send-email-eswierk@skyportsystems.com>
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 <eswierk@skyportsystems.com>
> ---
> 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
>
prev parent reply other threads:[~2014-05-09 8:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-06 3:04 [Qemu-devel] [PATCH] linux-user: Return correct errno for unsupported netlink socket Ed Swierk
2014-05-09 8:17 ` Riku Voipio [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140509081736.GA1231@afflict.kos.to \
--to=riku.voipio@iki.fi \
--cc=eswierk@skyportsystems.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).