mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -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;
|
unsigned char *url;
|
||||||
int dir;
|
int dir;
|
||||||
|
|
||||||
if ((uri->userlen && uri->passwordlen) || !auth || !auth->valid) {
|
if ((uri->userlen && uri->passwordlen) || !auth) {
|
||||||
url = get_uri_string(uri, URI_BASE);
|
url = get_uri_string(uri, URI_BASE);
|
||||||
} else {
|
} else {
|
||||||
unsigned char *uri_string = get_uri_string(uri, URI_HOST | URI_PORT | URI_DATA);
|
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->from = 0;
|
||||||
conn->unrestartable = 1;
|
conn->unrestartable = 1;
|
||||||
|
find_auth(conn->uri); /* remember useranme and password */
|
||||||
|
|
||||||
cpid = fork();
|
cpid = fork();
|
||||||
if (cpid == -1) {
|
if (cpid == -1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user