|
@@ -621,15 +621,6 @@ nfsd4_create(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
|
|
|
|
|
|
switch (create->cr_type) {
|
|
|
case NF4LNK:
|
|
|
- /* ugh! we have to null-terminate the linktext, or
|
|
|
- * vfs_symlink() will choke. it is always safe to
|
|
|
- * null-terminate by brute force, since at worst we
|
|
|
- * will overwrite the first byte of the create namelen
|
|
|
- * in the XDR buffer, which has already been extracted
|
|
|
- * during XDR decode.
|
|
|
- */
|
|
|
- create->cr_linkname[create->cr_linklen] = 0;
|
|
|
-
|
|
|
status = nfsd_symlink(rqstp, &cstate->current_fh,
|
|
|
create->cr_name, create->cr_namelen,
|
|
|
create->cr_linkname, create->cr_linklen,
|