diff options
-rw-r--r-- | sys/kern/vfs_vnops.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c index 8288b859ed14..1fb416b11fcb 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 */ |