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;
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to