* if ioctl hook wasn't found, now returns B_DEV_INVALID_IOCTL
* in case fd_ioctl() was about to return B_DEV_INVALID_IOCTL, translate to ENOTTY to satisfy #7279. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40787 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -5858,7 +5858,7 @@ common_ioctl(struct file_descriptor* descriptor, uint32 op, void* buffer,
|
||||
if (HAS_FS_CALL(vnode, ioctl))
|
||||
return FS_CALL(vnode, ioctl, descriptor->cookie, op, buffer, length);
|
||||
|
||||
return B_NOT_SUPPORTED;
|
||||
return B_DEV_INVALID_IOCTL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user