Make linux(4) warn about unsupported fcntls.

MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D25231
This commit is contained in:
Edward Tomasz Napierala 2020-06-12 14:25:32 +00:00
parent 4beacc3b1d
commit 34ff0c0e6a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=362102

View File

@ -1371,9 +1371,10 @@ fcntl_common(struct thread *td, struct linux_fcntl_args *args)
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