diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c index 6df98769ea63..a77b61acd143 100644 --- a/sys/compat/linux/linux_file.c +++ b/sys/compat/linux/linux_file.c @@ -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