[vlc-commits] dsm: use '; ' to seperate domain from user (like smb module)

Thomas Guillem git at videolan.org
Thu Jan 7 20:12:42 CET 2016


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Jan  7 10:24:40 2016 +0100| [af933f481e12a318a681ac2b2b1284b1bc9f77f6] | committer: Thomas Guillem

dsm: use ';' to seperate domain from user (like smb module)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=af933f481e12a318a681ac2b2b1284b1bc9f77f6
---

 modules/access/dsm/access.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/access/dsm/access.c b/modules/access/dsm/access.c
index 22e0fe6..6da24fc 100644
--- a/modules/access/dsm/access.c
+++ b/modules/access/dsm/access.c
@@ -139,7 +139,7 @@ struct access_sys_t
 #define BDSM_LOGIN_DIALOG_TITLE N_( "%s: Authentication required" )
 #define BDSM_LOGIN_DIALOG_TEXT N_( "The computer you are trying to connect "   \
     "to requires authentication.\n Please provide a username (and ideally a "  \
-    "domain name using the format DOMAIN\\username)\n and a password." )
+    "domain name using the format DOMAIN;username)\n and a password." )
 
 /*****************************************************************************
  * Open: Initialize module's data structures and libdsm
@@ -255,10 +255,10 @@ static void Close( vlc_object_t *p_this )
  * Local functions
  *****************************************************************************/
 
-/* Split DOMAIN\User if it finds a '\' in psz_login. */
+/* Split DOMAIN;User if it finds a ';' in psz_login. */
 static void split_domain_login( char **psz_login, char **psz_domain )
 {
-    char *user = strchr( *psz_login, '\\' );
+    char *user = strchr( *psz_login, ';' );
 
     if( user != NULL )
     {
@@ -279,7 +279,7 @@ static void get_credentials( access_t *p_access )
     else
         p_sys->creds.password = strdup( p_sys->url.psz_password );
 
-    /* Here we support smb://DOMAIN\User:password@XXX, get user from options
+    /* Here we support smb://DOMAIN;User:password@XXX, get user from options
        or default to "Guest" as last resort */
     if( p_sys->url.psz_username != NULL )
     {



More information about the vlc-commits mailing list