summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2007-09-03 17:51:04 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2007-09-03 17:51:04 +0000
commitc3d28c8a11bafb08a8c272642c7164f87fc4a8d0 (patch)
treeed42b6f92a1ac0353d3e6381ecc31328292c5d62
parent79a3e22326c7dd0b6c2aaf50a7df38fc4a0df3f5 (diff)
unsupported ioctl's should be returned with ENOTTY
not -1; ok miod@
-rw-r--r--sys/kern/subr_log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_log.c b/sys/kern/subr_log.c
index 2bd0ef91938..a1ba8e2335b 100644
--- a/sys/kern/subr_log.c
+++ b/sys/kern/subr_log.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_log.c,v 1.14 2005/12/09 09:09:52 jsg Exp $ */
+/* $OpenBSD: subr_log.c,v 1.15 2007/09/03 17:51:03 thib Exp $ */
/* $NetBSD: subr_log.c,v 1.11 1996/03/30 22:24:44 christos Exp $ */
/*
@@ -306,7 +306,7 @@ logioctl(dev_t dev, u_long com, caddr_t data, int flag, struct proc *p)
break;
default:
- return (-1);
+ return (ENOTTY);
}
return (0);
}