The Samba-Bugzilla – Attachment 1976 Details for
Bug 3849
empty username in url causes samba to use invalid username
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix for url parser
libsmbclient.patch (text/plain), 484 bytes, created by
Joakim Plate
on 2006-06-21 15:34:01 UTC
(
hide
)
Description:
Fix for url parser
Filename:
MIME Type:
Creator:
Joakim Plate
Created:
2006-06-21 15:34:01 UTC
Size:
484 bytes
patch
obsolete
>Index: libsmbclient.c >=================================================================== >--- libsmbclient.c (revision 15419) >+++ libsmbclient.c (working copy) >@@ -370,11 +370,18 @@ > } > > if (strchr_m(u, ':')) { >+ if( u[0] == ':' ) { > >- next_token(&u, username, ":", sizeof(fstring)); >+ u++; >+ pstrcpy(username, u); >+ } >+ else { > >- pstrcpy(passwd, u); >+ next_token(&u, username, ":", sizeof(fstring)); > >+ pstrcpy(passwd, u); >+ } >+ > } > else { >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 3849
: 1976