Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jun 2014 13:52:11 +0000 (UTC)
From:      Rick Macklem <rmacklem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r267268 - stable/9/sys/fs/nfsserver
Message-ID:  <201406091352.s59DqBdE024914@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rmacklem
Date: Mon Jun  9 13:52:10 2014
New Revision: 267268
URL: http://svnweb.freebsd.org/changeset/base/267268

Log:
  MFC: r267191
  The new NFS server would not allow a hard link to be
  created to a symlink. This restriction (which was
  inherited from OpenBSD) is not required by the NFS RFCs.
  Since this is allowed by the old NFS server, it is a
  POLA violation to not allow it. This patch modifies the
  new NFS server to allow this.
  
  Reported by:	jhb
  Reviewed by:	jhb
  Approved by:	re (kib)

Modified:
  stable/9/sys/fs/nfsserver/nfs_nfsdserv.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/fs/   (props changed)

Modified: stable/9/sys/fs/nfsserver/nfs_nfsdserv.c
==============================================================================
--- stable/9/sys/fs/nfsserver/nfs_nfsdserv.c	Mon Jun  9 13:04:58 2014	(r267267)
+++ stable/9/sys/fs/nfsserver/nfs_nfsdserv.c	Mon Jun  9 13:52:10 2014	(r267268)
@@ -1620,13 +1620,6 @@ nfsrvd_link(struct nfsrv_descript *nd, i
 			nd->nd_repstat = NFSERR_INVAL;
 		if (tovp)
 			vrele(tovp);
-	} else if (vnode_vtype(vp) == VLNK) {
-		if (nd->nd_flag & ND_NFSV2)
-			nd->nd_repstat = NFSERR_INVAL;
-		else
-			nd->nd_repstat = NFSERR_NOTSUPP;
-		if (tovp)
-			vrele(tovp);
 	}
 	if (!nd->nd_repstat) {
 		if (nd->nd_flag & ND_NFSV4) {



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