diff options
author | phk <phk@FreeBSD.org> | 2005-08-17 06:59:23 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2005-08-17 06:59:23 +0000 |
commit | 2352e07b6fe07c41fb7097c5ad4487a5b5074279 (patch) | |
tree | da1c1d19b7ef92e629d919da6c7d60ec1a9c0f3b /sys/kern | |
parent | d2cf0c963aa76adcb17c440a758b530b2b1a6e91 (diff) | |
download | FreeBSD-src-2352e07b6fe07c41fb7097c5ad4487a5b5074279.zip FreeBSD-src-2352e07b6fe07c41fb7097c5ad4487a5b5074279.tar.gz |
In vop_stdpathconf(ap) also default for _PC_NAME_MAX and _PC_PATH_MAX.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_default.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/kern/vfs_default.c b/sys/kern/vfs_default.c index 8369fc5..0ac6c11 100644 --- a/sys/kern/vfs_default.c +++ b/sys/kern/vfs_default.c @@ -217,6 +217,12 @@ vop_stdpathconf(ap) { switch (ap->a_name) { + case _PC_NAME_MAX: + *ap->a_retval = NAME_MAX; + return (0); + case _PC_PATH_MAX: + *ap->a_retval = PATH_MAX; + return (0); case _PC_LINK_MAX: *ap->a_retval = LINK_MAX; return (0); |