patch-2.4.5 linux/fs/nfsd/nfs3xdr.c
Next file: linux/fs/nfsd/nfsctl.c
Previous file: linux/fs/nfs/write.c
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Sat May 19 18:02:45 2001
- Orig file:
v2.4.4/linux/fs/nfsd/nfs3xdr.c
- Orig date:
Fri Dec 29 14:07:23 2000
diff -u --recursive --new-file v2.4.4/linux/fs/nfsd/nfs3xdr.c linux/fs/nfsd/nfs3xdr.c
@@ -707,15 +707,13 @@
exp = cd->dirfh->fh_export;
fh_init(&fh, NFS3_FHSIZE);
- if (fh_verify(cd->rqstp, cd->dirfh, S_IFDIR, MAY_EXEC) != 0)
- goto noexec;
if (isdotent(name, namlen)) {
dchild = dparent;
if (namlen == 2)
dchild = dchild->d_parent;
dchild = dget(dchild);
} else
- dchild = lookup_one(name, dparent);
+ dchild = lookup_one_len(name, dparent,namlen);
if (IS_ERR(dchild))
goto noexec;
if (fh_compose(&fh, exp, dchild) != 0 || !dchild->d_inode)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)