]> git.baikalelectronics.ru Git - kernel.git/commit
Allow user names longer than 32 bytes
authorSteve French <sfrench@us.ibm.com>
Fri, 25 Feb 2011 07:11:56 +0000 (01:11 -0600)
committerSteve French <sfrench@us.ibm.com>
Tue, 12 Apr 2011 00:42:06 +0000 (00:42 +0000)
commit3d48764f026797cb332de288bac7f56c158f3afc
treef35b215604127ebb05a977a1b8c093b7b441b6af
parentbc43101b71a20b74b75db5fb1ee808a76a912f7e
Allow user names longer than 32 bytes

We artificially limited the user name to 32 bytes, but modern servers handle
larger.  Set the maximum length to a reasonable 256, and make the user name
string dynamically allocated rather than a fixed size in session structure.
Also clean up old checkpatch warning.

Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifs_spnego.c
fs/cifs/cifsencrypt.c
fs/cifs/cifsfs.c
fs/cifs/cifsglob.h
fs/cifs/connect.c
fs/cifs/misc.c
fs/cifs/sess.c