Return ENOTTY on unrecognized ioctls.

This commit is contained in:
Poul-Henning Kamp 2002-09-26 14:08:37 +00:00
parent f6b80a4921
commit 1d02d910c1
2 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ nwfs_ioctl(ap)
*(int*)data = nmp->name_space;
break;
default:
error = EINVAL;
error = ENOTTY;
}
return (error);
}

View File

@ -359,7 +359,7 @@ static int
udf_ioctl(struct vop_ioctl_args *a)
{
printf("%s called\n", __FUNCTION__);
return (EOPNOTSUPP);
return (ENOTTY);
}
/*