diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2017-12-19 19:51:36 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2017-12-19 19:51:36 +0000 |
| commit | 599afe53a8fa0bdef852e2464293801d7b61fe88 (patch) | |
| tree | d14136a39450f17c0bb0fac46ffb1a295bb1421a /sys/fs/devfs | |
| parent | 2dd51e16ca5b8a28d5d917c66ebb6998cf2c344d (diff) | |
Notes
Diffstat (limited to 'sys/fs/devfs')
| -rw-r--r-- | sys/fs/devfs/devfs_vnops.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c index 6c4f90f387c6..f291aa59b8fe 100644 --- a/sys/fs/devfs/devfs_vnops.c +++ b/sys/fs/devfs/devfs_vnops.c @@ -1181,6 +1181,12 @@ devfs_pathconf(struct vop_pathconf_args *ap) { switch (ap->a_name) { + case _PC_NAME_MAX: + *ap->a_retval = NAME_MAX; + return (0); + case _PC_LINK_MAX: + *ap->a_retval = LINK_MAX; + return (0); case _PC_MAX_CANON: if (ap->a_vp->v_vflag & VV_ISTTY) { *ap->a_retval = MAX_CANON; @@ -1210,6 +1216,9 @@ devfs_pathconf(struct vop_pathconf_args *ap) *ap->a_retval = 0; #endif return (0); + case _PC_CHOWN_RESTRICTED: + *ap->a_retval = 1; + return (0); default: return (vop_stdpathconf(ap)); } |
