• Jeff Layton's avatar
    cifs: fix artificial limit on reading symlinks · 46a7574c
    Jeff Layton authored
    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: default avatarJeff Layton <jlayton@redhat.com>
    Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
    46a7574c
cifssmb.c 170 KB