1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Return ENOIOCTL for unknown ioctls, don't use noioctl to return ENODEV.

This commit is contained in:
Poul-Henning Kamp 2003-09-27 12:27:23 +00:00
parent f1cf3def78
commit 36449dc48e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120510

View File

@ -92,7 +92,7 @@ null_ioctl(dev_t dev, u_long cmd, caddr_t data, int flags, struct thread *td)
int error;
if (cmd != DIOCSKERNELDUMP)
return (noioctl(dev, cmd, data, flags, td));
return (ENOIOCTL);
error = suser(td);
if (error)
return (error);