svn commit: r326996 - head/sys/fs/devfs
John Baldwin
jhb at FreeBSD.org
Tue Dec 19 20:07:58 UTC 2017
Author: jhb
Date: Tue Dec 19 20:07:57 2017
New Revision: 326996
URL: https://svnweb.freebsd.org/changeset/base/326996
Log:
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
Modified:
head/sys/fs/devfs/devfs_vnops.c
Modified: head/sys/fs/devfs/devfs_vnops.c
==============================================================================
--- head/sys/fs/devfs/devfs_vnops.c Tue Dec 19 19:57:55 2017 (r326995)
+++ head/sys/fs/devfs/devfs_vnops.c Tue Dec 19 20:07:57 2017 (r326996)
@@ -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;
More information about the svn-src-all
mailing list