Date: Wed, 17 Mar 2021 10:27:31 GMT From: Alex Richardson <arichardson@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 79edf3d79565 - stable/13 - tmpfs: implement pathconf(_PC_SYMLINK_MAX) Message-ID: <202103171027.12HARVeT095832@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by arichardson: URL: https://cgit.FreeBSD.org/src/commit/?id=79edf3d795657c35da4adc7070aea16754e45721 commit 79edf3d795657c35da4adc7070aea16754e45721 Author: Alex Richardson <arichardson@FreeBSD.org> AuthorDate: 2021-03-17 09:49:49 +0000 Commit: Alex Richardson <arichardson@FreeBSD.org> CommitDate: 2021-03-17 09:49:49 +0000 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 (cherry picked from commit 1d15bceae63c438e3ff7dc7a0ca8a2c538e357b9) --- sys/fs/tmpfs/tmpfs_vnops.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/fs/tmpfs/tmpfs_vnops.c b/sys/fs/tmpfs/tmpfs_vnops.c index 7be2655dcf0b..94cb7fd868fa 100644 --- a/sys/fs/tmpfs/tmpfs_vnops.c +++ b/sys/fs/tmpfs/tmpfs_vnops.c @@ -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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103171027.12HARVeT095832>