summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_vnops.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c
index 8288b85..1fb416b 100644
--- a/sys/kern/vfs_vnops.c
+++ b/sys/kern/vfs_vnops.c
@@ -773,6 +773,12 @@ vn_ioctl(fp, com, data, active_cred, td)
return (0);
}
error = VOP_IOCTL(vp, com, data, fp->f_flag, active_cred, td);
+ if (error == ENOIOCTL) {
+#ifdef DIAGNOSTIC
+ Debugger("ENOIOCTL leaked through");
+#endif
+ error = ENOTTY;
+ }
if (error == 0 && com == TIOCSCTTY) {
/* Do nothing if reassigning same control tty */
OpenPOWER on IntegriCloud