1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-01 03:36:26 -04: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:
Witold Filipczyk 2007-01-27 12:38:02 +01:00 committed by Kalle Olavi Niemitalo
parent 0c1371b161
commit a0db520267

View File

@ -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) {