From: Kenneth D'souza Date: Sat, 17 Nov 2018 05:03:30 +0000 (+0530) Subject: Add vers=3.0.2 as a valid option for SMBv3.0.2 X-Git-Tag: v5.0-rc1~62^2~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4a3b38aec5778f8eb37b2eb4701baffb1da4ccd5;p=thirdparty%2Fkernel%2Flinux.git Add vers=3.0.2 as a valid option for SMBv3.0.2 Technically 3.02 is not the dialect name although that is more familiar to many, so we should also accept the official dialect name (3.0.2 vs. 3.02) in vers= Signed-off-by: Kenneth D'souza Signed-off-by: Steve French --- diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 38ab0fca49e1d..7b3b9313dcdeb 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h @@ -1790,6 +1790,7 @@ extern struct smb_version_values smb3any_values; extern struct smb_version_operations smb30_operations; extern struct smb_version_values smb30_values; #define SMB302_VERSION_STRING "3.02" +#define ALT_SMB302_VERSION_STRING "3.0.2" /*extern struct smb_version_operations smb302_operations;*/ /* not needed yet */ extern struct smb_version_values smb302_values; #define SMB311_VERSION_STRING "3.1.1" diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 6f24f129a7513..f0be8ed6871fb 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -304,6 +304,7 @@ static const match_table_t cifs_smb_version_tokens = { { Smb_21, SMB21_VERSION_STRING }, { Smb_30, SMB30_VERSION_STRING }, { Smb_302, SMB302_VERSION_STRING }, + { Smb_302, ALT_SMB302_VERSION_STRING }, { Smb_311, SMB311_VERSION_STRING }, { Smb_311, ALT_SMB311_VERSION_STRING }, { Smb_3any, SMB3ANY_VERSION_STRING },