summaryrefslogtreecommitdiffstats
path: root/sys/dev/null
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-09-27 12:27:23 +0000
committerphk <phk@FreeBSD.org>2003-09-27 12:27:23 +0000
commitf98b551eb138ed980295a1a86f7eec60d1122bba (patch)
treed920d9e8c0c7ebbb967a275cc38dce412581588a /sys/dev/null
parente6071cdd1556cef0b8018efab035a256a3d2f47a (diff)
downloadFreeBSD-src-f98b551eb138ed980295a1a86f7eec60d1122bba.zip
FreeBSD-src-f98b551eb138ed980295a1a86f7eec60d1122bba.tar.gz
Return ENOIOCTL for unknown ioctls, don't use noioctl to return ENODEV.
Diffstat (limited to 'sys/dev/null')
-rw-r--r--sys/dev/null/null.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/null/null.c b/sys/dev/null/null.c
index 4044bc7..f1cbee6 100644
--- a/sys/dev/null/null.c
+++ b/sys/dev/null/null.c
@@ -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);
OpenPOWER on IntegriCloud