svn commit: r320409 - head/sys/fs/nfs

Edward Tomasz Napierala trasz at FreeBSD.org
Tue Jun 27 15:14:08 UTC 2017


Author: trasz
Date: Tue Jun 27 15:14:06 2017
New Revision: 320409
URL: https://svnweb.freebsd.org/changeset/base/320409

Log:
  Revert part of r320359, as suggested by rmacklem at .  That case is only used
  for nfsuserd -manage-gids and shouldn't depend on sysctl.
  
  MFC after:	2 weeks
  Sponsored by:	DARPA, AFRL

Modified:
  head/sys/fs/nfs/nfs_commonsubs.c

Modified: head/sys/fs/nfs/nfs_commonsubs.c
==============================================================================
--- head/sys/fs/nfs/nfs_commonsubs.c	Tue Jun 27 15:07:19 2017	(r320408)
+++ head/sys/fs/nfs/nfs_commonsubs.c	Tue Jun 27 15:14:06 2017	(r320409)
@@ -2672,7 +2672,7 @@ nfsrv_getgrpscred(struct ucred *oldcred)
 	cnt = 0;
 	uid = oldcred->cr_uid;
 tryagain:
-	if (nfsrv_dnsnamelen > 0 && !nfsd_enable_uidtostring) {
+	if (nfsrv_dnsnamelen > 0) {
 		hp = NFSUSERHASH(uid);
 		mtx_lock(&hp->mtx);
 		TAILQ_FOREACH(usrp, &hp->lughead, lug_numhash) {


More information about the svn-src-head mailing list