svn commit: r273202 - head/sys/fs/nfsserver
Marcelo Araujo
araujo at FreeBSD.org
Fri Oct 17 02:11:10 UTC 2014
Author: araujo (ports committer)
Date: Fri Oct 17 02:11:09 2014
New Revision: 273202
URL: https://svnweb.freebsd.org/changeset/base/273202
Log:
Make the sysctl(8) for checkutf8 positively defined and improve
the description of it.
Submitted by: Ronald Klop <ronald-lists at klop.ws>
Reviewed by: rmacklem
Approved by: rmacklem
Sponsored by: QNAP Systems Inc.
Modified:
head/sys/fs/nfsserver/nfs_nfsdsubs.c
Modified: head/sys/fs/nfsserver/nfs_nfsdsubs.c
==============================================================================
--- head/sys/fs/nfsserver/nfs_nfsdsubs.c Fri Oct 17 00:31:51 2014 (r273201)
+++ head/sys/fs/nfsserver/nfs_nfsdsubs.c Fri Oct 17 02:11:09 2014 (r273202)
@@ -61,10 +61,10 @@ static u_int32_t nfsrv_isannfserr(u_int3
SYSCTL_DECL(_vfs_nfsd);
-static int disable_checkutf8 = 0;
-SYSCTL_INT(_vfs_nfsd, OID_AUTO, disable_checkutf8, CTLFLAG_RW,
- &disable_checkutf8, 0,
- "Disable the NFSv4 check for a UTF8 compliant name");
+static int enable_checkutf8 = 1;
+SYSCTL_INT(_vfs_nfsd, OID_AUTO, enable_checkutf8, CTLFLAG_RW,
+ &enable_checkutf8, 0,
+ "Enable the NFSv4 check for the UTF8 compliant name required by rfc3530");
static int enable_nobodycheck = 1;
SYSCTL_INT(_vfs_nfsd, OID_AUTO, enable_nobodycheck, CTLFLAG_RW,
@@ -2005,7 +2005,7 @@ nfsrv_parsename(struct nfsrv_descript *n
error = 0;
goto nfsmout;
}
- if (disable_checkutf8 == 0 &&
+ if (enable_checkutf8 == 1 &&
nfsrv_checkutf8((u_int8_t *)bufp, outlen)) {
nd->nd_repstat = NFSERR_INVAL;
error = 0;
More information about the svn-src-head
mailing list