mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
smb: remember the username and the password given in the uri.
[ This is half of commit c7f6f76951
from the witekfl branch. The FSP half will come later. --KON ]
This commit is contained in:
parent
0c1371b161
commit
a0db520267
@ -252,7 +252,7 @@ do_smb(struct connection *conn)
|
||||
unsigned char *url;
|
||||
int dir;
|
||||
|
||||
if ((uri->userlen && uri->passwordlen) || !auth || !auth->valid) {
|
||||
if ((uri->userlen && uri->passwordlen) || !auth) {
|
||||
url = get_uri_string(uri, URI_BASE);
|
||||
} else {
|
||||
unsigned char *uri_string = get_uri_string(uri, URI_HOST | URI_PORT | URI_DATA);
|
||||
@ -448,6 +448,7 @@ smb_protocol_handler(struct connection *conn)
|
||||
}
|
||||
conn->from = 0;
|
||||
conn->unrestartable = 1;
|
||||
find_auth(conn->uri); /* remember useranme and password */
|
||||
|
||||
cpid = fork();
|
||||
if (cpid == -1) {
|
||||
|
Loading…
Reference in New Issue
Block a user