]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/nfsd/nfs4xdr.c
nfsd4: fix xdr4 inclusion of escaped char
[karo-tx-linux.git] / fs / nfsd / nfs4xdr.c
index 8880ec8cfd11771b3f3fdda3fb362fc7c5beca08..a8549f8fef57399b08dbe745a535f83de927299c 100644 (file)
@@ -1812,6 +1812,9 @@ static __be32 nfsd4_encode_components_esc(struct xdr_stream *xdr, char sep,
                }
                else
                        end++;
+               if (found_esc)
+                       end = next;
+
                str = end;
        }
        pathlen = htonl(xdr->buf->len - pathlen_offset);