Re: [BUG] Symlinks broken on 2.4.10-ac[3-4] nfs

From: Trond Myklebust (trond.myklebust@fys.uio.no)
Date: Thu Oct 04 2001 - 06:02:14 EST


It's a known bug in the 2.4.10 NFS server code. The following patch
fixes it...

Cheers,
  Trond

diff -u --recursive --new-file linux-2.4.10/fs/nfsd/nfs3xdr.c linux-2.4.10-symlinks/fs/nfsd/nfs3xdr.c
--- linux-2.4.10/fs/nfsd/nfs3xdr.c Mon Sep 24 00:33:20 2001
+++ linux-2.4.10-symlinks/fs/nfsd/nfs3xdr.c Thu Oct 4 12:59:49 2001
@@ -99,7 +99,7 @@
         char *name;
         int i;
 
- if ((p = xdr_decode_string_inplace(p, namp, lenp, NFS3_MAXPATHLEN)) != NULL) {
+ if ((p = xdr_decode_string(p, namp, lenp, NFS3_MAXPATHLEN)) != NULL) {
                 for (i = 0, name = *namp; i < *lenp; i++, name++) {
                         if (*name == '\0')
                                 return NULL;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Oct 07 2001 - 21:00:32 EST