Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 May 2009 09:34:02 +0000 (UTC)
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r191875 - head/sys/compat/linux
Message-ID:  <200905070934.n479Y2MM047900@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dchagin
Date: Thu May  7 09:34:02 2009
New Revision: 191875
URL: http://svn.freebsd.org/changeset/base/191875

Log:
  Return EAFNOSUPPORT instead of EINVAL in case when the incorrect or
  unsupported domain argument is specified.
  
  Approved by:	kib (mentor)

Modified:
  head/sys/compat/linux/linux_socket.c

Modified: head/sys/compat/linux/linux_socket.c
==============================================================================
--- head/sys/compat/linux/linux_socket.c	Thu May  7 05:44:13 2009	(r191874)
+++ head/sys/compat/linux/linux_socket.c	Thu May  7 09:34:02 2009	(r191875)
@@ -599,7 +599,7 @@ linux_socket(struct thread *td, struct l
 	bsd_args.type = args->type;
 	bsd_args.domain = linux_to_bsd_domain(args->domain);
 	if (bsd_args.domain == -1)
-		return (EINVAL);
+		return (EAFNOSUPPORT);
 
 	retval_socket = socket(td, &bsd_args);
 	if (bsd_args.type == SOCK_RAW



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905070934.n479Y2MM047900>