Mercurial > gftp.yaz
comparison src/uicommon/gftpui.c @ 553:b2b4f5fa8fc7
2004-9-14 Brian Masney <masneyb@gftp.org>
* lib/gftp.h lib/bookmark.c lib/local.c lib/rfc2068.c lib/rfc959.c
lib/sshv2.c src/gtk/transfer.c src/uicommon/gftpui.c - removed
need_userpass from the gftp_request structure. Added need_username and
need_password in it's place
* autogen.sh - updated CFLAGS variable that is passed to configure
author | masneyb |
---|---|
date | Tue, 14 Sep 2004 10:16:52 +0000 |
parents | d0e8f8ee3b20 |
children | 7f54d0c0edbc |
comparison
equal
deleted
inserted
replaced
552:3774d35667f0 | 553:b2b4f5fa8fc7 |
---|---|
665 | 665 |
666 if (gftp_parse_url (request, command) < 0) | 666 if (gftp_parse_url (request, command) < 0) |
667 return (1); | 667 return (1); |
668 } | 668 } |
669 | 669 |
670 if (request->need_userpass) | 670 if (gftp_need_username (request)) |
671 { | 671 gftpui_prompt_username (uidata, request); |
672 if (request->username == NULL || *request->username == '\0') | 672 |
673 gftpui_prompt_username (uidata, request); | 673 if (gftp_need_password (request)) |
674 | 674 gftpui_prompt_password (uidata, request); |
675 if (request->username != NULL && | |
676 strcmp (request->username, "anonymous") != 0 && | |
677 (request->password == NULL || *request->password == '\0')) | |
678 gftpui_prompt_password (uidata, request); | |
679 } | |
680 | 675 |
681 gftp_lookup_request_option (request, "retries", &retries); | 676 gftp_lookup_request_option (request, "retries", &retries); |
682 | 677 |
683 cdata = g_malloc0 (sizeof (*cdata)); | 678 cdata = g_malloc0 (sizeof (*cdata)); |
684 cdata->request = request; | 679 cdata->request = request; |