Browse Source

Ticket #3869: fix of retrieve password from .netrc.

(ftpfs_correct_url_parameters): fix condition.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Cristian Rigamonti 7 years ago
parent
commit
3ab6ef7aa7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/vfs/ftpfs/ftpfs.c

+ 1 - 1
src/vfs/ftpfs/ftpfs.c

@@ -368,7 +368,7 @@ ftpfs_correct_url_parameters (const vfs_path_element_t * velement)
         path_element->user = g_strdup ("anonymous");
 
     /* Look up password in netrc for known user */
-    if (ftpfs_use_netrc && path_element->user != NULL && path_element->password != NULL)
+    if (ftpfs_use_netrc && path_element->user != NULL && path_element->password == NULL)
     {
         char *new_user = NULL;
         char *new_passwd = NULL;