diff options
author | rmacklem <rmacklem@FreeBSD.org> | 2014-06-10 22:36:01 +0000 |
---|---|---|
committer | rmacklem <rmacklem@FreeBSD.org> | 2014-06-10 22:36:01 +0000 |
commit | f8127115e64c2ad1421af292d3da6968a928297c (patch) | |
tree | b0b0ca44449b054f6f52f158914f6c6c26111231 /sys/fs | |
parent | e2cfb983341da0c8d771a7828a5b764553150e4c (diff) | |
download | FreeBSD-src-f8127115e64c2ad1421af292d3da6968a928297c.zip FreeBSD-src-f8127115e64c2ad1421af292d3da6968a928297c.tar.gz |
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.
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/nfsserver/nfs_nfsdserv.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sys/fs/nfsserver/nfs_nfsdserv.c b/sys/fs/nfsserver/nfs_nfsdserv.c index bf2d7ed..69c3af0 100644 --- a/sys/fs/nfsserver/nfs_nfsdserv.c +++ b/sys/fs/nfsserver/nfs_nfsdserv.c @@ -1620,13 +1620,6 @@ nfsrvd_link(struct nfsrv_descript *nd, int isdgram, 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) { |