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:
parent
4beacc3b1d
commit
34ff0c0e6a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user