cifs: fix artificial limit on reading symlinks
authorJeff Layton <jlayton@redhat.com>
Sun, 24 May 2009 22:45:17 +0000 (18:45 -0400)
committerSteve French <sfrench@us.ibm.com>
Tue, 26 May 2009 21:09:14 +0000 (21:09 +0000)
commit46a7574caf5bc533c24b315800ed323c187614f5
tree2afb4ee1af82a06fa16a9ae4b14dedeec7addbce
parente2a1b9ee2335c35e0e34c88a024481b194b3c9cc
cifs: fix artificial limit on reading symlinks

There's no reason to limit the size of a symlink that we can read to
4000 bytes. That may be nowhere near PATH_MAX if the server is sending
UCS2 strings. CIFS should be able to read in a symlink up to the size of
the buffer. The size of the header has already been accounted for when
creating the slabcache, so CIFSMaxBufSize should be the correct size to
pass in.

Fixes samba bug #6384.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifssmb.c