diff options
author | Steve French <sfrench@us.ibm.com> | 2011-02-25 02:11:56 -0500 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2011-04-11 20:42:06 -0400 |
commit | 8727c8a85f3951ef0eef36a665f5dceebb4c495d (patch) | |
tree | f35b215604127ebb05a977a1b8c093b7b441b6af /fs/cifs/cifsfs.c | |
parent | bdf1b03e093bdbc571f404e751c7b0e2dca412ea (diff) |
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>
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r-- | fs/cifs/cifsfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index 41c78e8fc591..0e0cc60dbde0 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c | |||
@@ -412,8 +412,8 @@ cifs_show_options(struct seq_file *s, struct vfsmount *m) | |||
412 | 412 | ||
413 | if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MULTIUSER) | 413 | if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MULTIUSER) |
414 | seq_printf(s, ",multiuser"); | 414 | seq_printf(s, ",multiuser"); |
415 | else if (tcon->ses->userName) | 415 | else if (tcon->ses->user_name) |
416 | seq_printf(s, ",username=%s", tcon->ses->userName); | 416 | seq_printf(s, ",username=%s", tcon->ses->user_name); |
417 | 417 | ||
418 | if (tcon->ses->domainName) | 418 | if (tcon->ses->domainName) |
419 | seq_printf(s, ",domain=%s", tcon->ses->domainName); | 419 | seq_printf(s, ",domain=%s", tcon->ses->domainName); |