[vlc-devel] [PATCH] dsm: specify the v1 protocol in the dialog credential title

Thomas Guillem thomas at gllm.fr
Thu Oct 17 16:32:19 CEST 2019


---
 modules/access/dsm/access.c | 2 +-
 modules/access/smb_common.h | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/access/dsm/access.c b/modules/access/dsm/access.c
index 7cf46cf5937..060004f9fa8 100644
--- a/modules/access/dsm/access.c
+++ b/modules/access/dsm/access.c
@@ -383,7 +383,7 @@ static int login( stream_t *p_access )
         }
         while( connect_err == EACCES
             && vlc_credential_get( &credential, p_access, "smb-user", "smb-pwd",
-                                   SMB_LOGIN_DIALOG_TITLE,
+                                   SMB1_LOGIN_DIALOG_TITLE,
                                    SMB_LOGIN_DIALOG_TEXT, p_sys->netbios_name ) )
         {
             b_guest = false;
diff --git a/modules/access/smb_common.h b/modules/access/smb_common.h
index 7f869d1ac33..e3f069b8e41 100644
--- a/modules/access/smb_common.h
+++ b/modules/access/smb_common.h
@@ -28,6 +28,8 @@
 #define SMB_DOMAIN_LONGTEXT N_("Domain/Workgroup that " \
         "will be used for the connection.")
 
+#define SMB1_LOGIN_DIALOG_TITLE N_( "SMBv1 authentication required" )
+
 #define SMB_LOGIN_DIALOG_TITLE N_( "SMB authentication required" )
 #define SMB_LOGIN_DIALOG_TEXT N_( "The computer (%s) you are trying to connect "   \
     "to requires authentication.\nPlease provide a username (ideally a "  \
-- 
2.20.1



More information about the vlc-devel mailing list