mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 05:58:57 +00:00
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 MFC after: 3 days
This commit is contained in:
parent
c7156fe92f
commit
ca4defd583
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=267191
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user