Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Dec 2023 23:17:40 GMT
From:      Rick Macklem <rmacklem@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 2c83f1ada435 - stable/14 - mountd: Update exports.5 for commit 7c5146da1286
Message-ID:  <202312292317.3BTNHeio092497@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by rmacklem:

URL: https://cgit.FreeBSD.org/src/commit/?id=2c83f1ada4356e61b0a33314f3f02736d7a2fb14

commit 2c83f1ada4356e61b0a33314f3f02736d7a2fb14
Author:     Rick Macklem <rmacklem@FreeBSD.org>
AuthorDate: 2023-12-22 20:17:36 +0000
Commit:     Rick Macklem <rmacklem@FreeBSD.org>
CommitDate: 2023-12-29 23:16:16 +0000

    mountd: Update exports.5 for commit 7c5146da1286
    
    Commit 7c5146da1286 modified mountd so that it uses
    strunvis(3) to decode directory names in exports lines.
    This allows special characters, such as blanks, to be
    encoded in the directory names.
    
    This patch updates the exports.5 man page for this change.
    
    This is a content change.
    
    (cherry picked from commit 922e78f65fd9a58db9e52d84290ed7c187b09278)
---
 usr.sbin/mountd/exports.5 | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/usr.sbin/mountd/exports.5 b/usr.sbin/mountd/exports.5
index 56facef29a12..e394bb036046 100644
--- a/usr.sbin/mountd/exports.5
+++ b/usr.sbin/mountd/exports.5
@@ -27,7 +27,7 @@
 .\"
 .\"     @(#)exports.5	8.3 (Berkeley) 3/29/95
 .\"
-.Dd August 16, 2022
+.Dd December 21, 2023
 .Dt EXPORTS 5
 .Os
 .Sh NAME
@@ -108,6 +108,17 @@ any
 or
 .Dq Pa ..
 components.
+Pathnames are decoded by
+.Xr strunvis 3
+allowing special characters to be included in the directory name(s).
+In particular, whitespace, such as embedded blanks in directory names
+can be handled.
+For example, a blank can be encoded as \(rs040.
+.Xr vis 1
+with the
+.Fl M
+option may be used to encode directory name(s) with embedded special
+characters.
 Mount points for a file system may appear on multiple lines each with
 different sets of hosts and export options.
 .Pp
@@ -584,6 +595,8 @@ NFSv4 mount request for a directory that the client does not have
 permission for will succeed and read/write access will fail
 afterwards, whereas NFSv3 rejects the mount request.
 .Sh SEE ALSO
+.Xr vis 1 ,
+.Xr strunvis 3 ,
 .Xr nfsv4 4 ,
 .Xr netgroup 5 ,
 .Xr mountd 8 ,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202312292317.3BTNHeio092497>