Report INT_MAX for LINK_MAX for devfs' VOP_PATHCONF().

devfs uses int's for link counts internally and already reports the the
full link count via stat() post ino64.

Sponsored by:	Chelsio Communications
This commit is contained in:
John Baldwin 2017-12-19 20:07:57 +00:00
parent a74da9fb83
commit f6e25ec77c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326996

View File

@ -1188,7 +1188,7 @@ devfs_pathconf(struct vop_pathconf_args *ap)
*ap->a_retval = NAME_MAX;
return (0);
case _PC_LINK_MAX:
*ap->a_retval = LINK_MAX;
*ap->a_retval = INT_MAX;
return (0);
case _PC_SYMLINK_MAX:
*ap->a_retval = MAXPATHLEN;