aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>2021-01-29 09:30:25 +0000
committerAlex Richardson <arichardson@FreeBSD.org>2021-01-29 09:30:25 +0000
commit1d15bceae63c438e3ff7dc7a0ca8a2c538e357b9 (patch)
tree29db7dbe48847634a50948599c992a8ad9bfd924
parent892a05ee3a6abd8d84f46a1b895b1d2bf805d08a (diff)
downloadsrc-1d15bceae63c438e3ff7dc7a0ca8a2c538e357b9.tar.gz
src-1d15bceae63c438e3ff7dc7a0ca8a2c538e357b9.zip
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
-rw-r--r--sys/fs/tmpfs/tmpfs_vnops.c4
1 files changed, 4 insertions, 0 deletions
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;