summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2004-02-11 06:42:39 +0000
committermiod <miod@openbsd.org>2004-02-11 06:42:39 +0000
commita87f4c418cde5ed1bbca7a95031609b517ec917b (patch)
tree79eee8928f8d4fc8ee9fddc220a3876c2f0d50ca
parentDeal with pfctl always needing root by adding ${SUDO} where it's needed. (diff)
downloadwireguard-openbsd-a87f4c418cde5ed1bbca7a95031609b517ec917b.tar.xz
wireguard-openbsd-a87f4c418cde5ed1bbca7a95031609b517ec917b.zip
Return ENOTTY on unhandled ioctls; ok drahn@
-rw-r--r--sys/arch/arm/footbridge/footbridge_com.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/arm/footbridge/footbridge_com.c b/sys/arch/arm/footbridge/footbridge_com.c
index 7c930907148..d4c1ceadf96 100644
--- a/sys/arch/arm/footbridge/footbridge_com.c
+++ b/sys/arch/arm/footbridge/footbridge_com.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: footbridge_com.c,v 1.1 2004/02/01 05:09:49 drahn Exp $ */
+/* $OpenBSD: footbridge_com.c,v 1.2 2004/02/11 06:42:39 miod Exp $ */
/* $NetBSD: footbridge_com.c,v 1.13 2003/03/23 14:12:25 chris Exp $ */
/*-
@@ -381,6 +381,9 @@ fcomioctl(dev, cmd, data, flag, p)
return (error);
sc->sc_swflags = *(int *)data;
break;
+
+ default:
+ return ENOTTY;
}
return 0;