summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-09-26 14:08:37 +0000
committerphk <phk@FreeBSD.org>2002-09-26 14:08:37 +0000
commitbd3b8669b156628d7933508fa0301864f59d0ef0 (patch)
treea16ea98d04d53efb94fa7286a2ee10466bf302a8
parentf9dee9cb556ea2468d36c7ba81690db4a13578f8 (diff)
downloadFreeBSD-src-bd3b8669b156628d7933508fa0301864f59d0ef0.zip
FreeBSD-src-bd3b8669b156628d7933508fa0301864f59d0ef0.tar.gz
Return ENOTTY on unrecognized ioctls.
-rw-r--r--sys/fs/nwfs/nwfs_ioctl.c2
-rw-r--r--sys/fs/udf/udf_vnops.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/nwfs/nwfs_ioctl.c b/sys/fs/nwfs/nwfs_ioctl.c
index fd8b944..32692b4 100644
--- a/sys/fs/nwfs/nwfs_ioctl.c
+++ b/sys/fs/nwfs/nwfs_ioctl.c
@@ -89,7 +89,7 @@ nwfs_ioctl(ap)
*(int*)data = nmp->name_space;
break;
default:
- error = EINVAL;
+ error = ENOTTY;
}
return (error);
}
diff --git a/sys/fs/udf/udf_vnops.c b/sys/fs/udf/udf_vnops.c
index d752789..2f71d86 100644
--- a/sys/fs/udf/udf_vnops.c
+++ b/sys/fs/udf/udf_vnops.c
@@ -359,7 +359,7 @@ static int
udf_ioctl(struct vop_ioctl_args *a)
{
printf("%s called\n", __FUNCTION__);
- return (EOPNOTSUPP);
+ return (ENOTTY);
}
/*
OpenPOWER on IntegriCloud