tmpfs: implement pathconf(_PC_SYMLINK_MAX)

This fixes one of the sys/audit tests when running them on tmpfs.

Reviewed By:	delphij, kib
Differential Revision: https://reviews.freebsd.org/D28387
This commit is contained in:
Alex Richardson 2021-01-29 09:30:25 +00:00 committed by Alex Richardson
parent 892a05ee3a
commit 1d15bceae6

View File

@ -1609,6 +1609,10 @@ tmpfs_pathconf(struct vop_pathconf_args *v)
*retval = TMPFS_LINK_MAX;
break;
case _PC_SYMLINK_MAX:
*retval = MAXPATHLEN;
break;
case _PC_NAME_MAX:
*retval = NAME_MAX;
break;