Author: rmacklem
Date: Sat Sep  3 00:28:53 2011
New Revision: 225356
URL: http://svn.freebsd.org/changeset/base/225356

Log:
  Fix the NFS servers so that they can do a Lookup of "..",
  which requires that ni_strictrelative be set to 0, post-r224810.
  
  Tested by:    swills (earlier version), geo dot liaskos at gmail.com
  Approved by:  re (kib)

Modified:
  head/sys/fs/nfsserver/nfs_nfsdport.c
  head/sys/nfsserver/nfs_serv.c

Modified: head/sys/fs/nfsserver/nfs_nfsdport.c
==============================================================================
--- head/sys/fs/nfsserver/nfs_nfsdport.c        Fri Sep  2 23:51:55 2011        
(r225355)
+++ head/sys/fs/nfsserver/nfs_nfsdport.c        Sat Sep  3 00:28:53 2011        
(r225356)
@@ -282,6 +282,7 @@ nfsvno_namei(struct nfsrv_descript *nd, 
 
        *retdirp = NULL;
        cnp->cn_nameptr = cnp->cn_pnbuf;
+       ndp->ni_strictrelative = 0;
        /*
         * Extract and set starting directory.
         */

Modified: head/sys/nfsserver/nfs_serv.c
==============================================================================
--- head/sys/nfsserver/nfs_serv.c       Fri Sep  2 23:51:55 2011        
(r225355)
+++ head/sys/nfsserver/nfs_serv.c       Sat Sep  3 00:28:53 2011        
(r225356)
@@ -157,6 +157,7 @@ ndclear(struct nameidata *nd)
        nd->ni_vp = NULL;
        nd->ni_dvp = NULL;
        nd->ni_startdir = NULL;
+       nd->ni_strictrelative = 0;
 }
 
 /*
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to