From 2dbc1f76894c2c4e57559b6aff402f3d4b2708f5 Mon Sep 17 00:00:00 2001 From: kettenis Date: Fri, 22 Jul 2016 13:11:01 +0000 Subject: [PATCH] Set the vfs_systcl member of the vsfops struct to eopnotsupp. While we check for a null pointer now, all other filesystems fill in the complete table. ok deraadt@, tom@ --- sys/tmpfs/tmpfs_vfsops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/tmpfs/tmpfs_vfsops.c b/sys/tmpfs/tmpfs_vfsops.c index ff49be01dd8..9d67ec19514 100644 --- a/sys/tmpfs/tmpfs_vfsops.c +++ b/sys/tmpfs/tmpfs_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tmpfs_vfsops.c,v 1.9 2016/07/11 22:36:25 tedu Exp $ */ +/* $OpenBSD: tmpfs_vfsops.c,v 1.10 2016/07/22 13:11:01 kettenis Exp $ */ /* $NetBSD: tmpfs_vfsops.c,v 1.52 2011/09/27 01:10:43 christos Exp $ */ /* @@ -373,6 +373,6 @@ struct vfsops tmpfs_vfsops = { tmpfs_fhtovp, /* vfs_fhtovp */ tmpfs_vptofh, /* vfs_vptofh */ tmpfs_init, /* vfs_init */ - NULL, /* vfs_sysctl */ + (void *)eopnotsupp, /* vfs_sysctl */ (void *)eopnotsupp, }; -- 2.20.1