From bd6cf7e12754258db2307b201d15fb82521b3ace Mon Sep 17 00:00:00 2001 From: perseant Date: Mon, 24 Feb 2003 08:34:30 +0000 Subject: [PATCH] Allow filesystems' VOP_IOCTL to catch ioctl calls on directories and regular files. Approved thorpej, fvdl. --- sys/kern/vfs_vnops.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c index 5ee3ebdea6d7..c7b32db3b7bd 100644 --- a/sys/kern/vfs_vnops.c +++ b/sys/kern/vfs_vnops.c @@ -1,4 +1,4 @@ -/* $NetBSD: vfs_vnops.c,v 1.62 2003/02/01 07:23:56 atatat Exp $ */ +/* $NetBSD: vfs_vnops.c,v 1.63 2003/02/24 08:34:30 perseant Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1993 @@ -41,7 +41,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: vfs_vnops.c,v 1.62 2003/02/01 07:23:56 atatat Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vfs_vnops.c,v 1.63 2003/02/24 08:34:30 perseant Exp $"); #include "fs_union.h" @@ -703,9 +703,6 @@ vn_ioctl(fp, com, data, p) return (0); /* XXX */ /* fall into ... */ - default: - return (EPASSTHROUGH); - case VFIFO: case VCHR: case VBLK: @@ -717,6 +714,9 @@ vn_ioctl(fp, com, data, p) VREF(vp); } return (error); + + default: + return (EPASSTHROUGH); } }