svn commit: r191875 - head/sys/compat/linux

Dmitry Chagin dchagin at FreeBSD.org
Thu May 7 09:34:03 UTC 2009


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


More information about the svn-src-head mailing list