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

Edward Tomasz Napierala trasz at FreeBSD.org
Fri Jun 12 14:25:33 UTC 2020


Author: trasz
Date: Fri Jun 12 14:25:32 2020
New Revision: 362102
URL: https://svnweb.freebsd.org/changeset/base/362102

Log:
  Make linux(4) warn about unsupported fcntls.
  
  MFC after:	2 weeks
  Sponsored by:	The FreeBSD Foundation
  Differential Revision:	https://reviews.freebsd.org/D25231

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

Modified: head/sys/compat/linux/linux_file.c
==============================================================================
--- head/sys/compat/linux/linux_file.c	Fri Jun 12 14:23:10 2020	(r362101)
+++ head/sys/compat/linux/linux_file.c	Fri Jun 12 14:25:32 2020	(r362102)
@@ -1371,9 +1371,10 @@ fcntl_common(struct thread *td, struct linux_fcntl_arg
 
 	case LINUX_F_DUPFD_CLOEXEC:
 		return (kern_fcntl(td, args->fd, F_DUPFD_CLOEXEC, args->arg));
+	default:
+		linux_msg(td, "unsupported fcntl cmd %d\n", args->cmd);
+		return (EINVAL);
 	}
-
-	return (EINVAL);
 }
 
 int


More information about the svn-src-head mailing list