mirror of
https://git.savannah.gnu.org/git/inetutils.git
synced 2026-01-12 00:19:39 +08:00
ftp: Portability to Android.
Add external declaration of getpass(). Tiny patch by Fredrik Fornwall <fredrik@fornwall.net>.
This commit is contained in:
13
ChangeLog
13
ChangeLog
@@ -1,3 +1,16 @@
|
||||
2017-03-02 Fredrik Fornwall <fredrik@fornwall.net> (tiny change)
|
||||
|
||||
ftp: Portability to Android.
|
||||
Without a check for HAVE_DECL_GETPASS and without making a
|
||||
local function declaration, the implicit declaration causes
|
||||
crashes on 64-bit systems lacking declared getpass(), such
|
||||
as Android. Reported in:
|
||||
http://lists.gnu.org/archive/html/bug-inetutils/2016-10/msg00000.html
|
||||
|
||||
* ftp/cmds.c [!HAVE_DECL_GETPASS] (user, account): Declare getpass()
|
||||
as external function.
|
||||
* ftp/ftp.c (login): Likewise.
|
||||
|
||||
2017-03-02 Mats Erik Andersson <gnu@gisladisker.se>
|
||||
|
||||
whois: Update Canadian TLD server.
|
||||
|
||||
@@ -1721,6 +1721,9 @@ shell (int argc, char **argv _GL_UNUSED_PARAMETER)
|
||||
void
|
||||
user (int argc, char **argv)
|
||||
{
|
||||
#if !HAVE_DECL_GETPASS
|
||||
extern char *getpass ();
|
||||
#endif
|
||||
char acct[80];
|
||||
int n, aflag = 0;
|
||||
|
||||
@@ -2070,6 +2073,9 @@ globulize (char *cp)
|
||||
void
|
||||
account (int argc, char **argv)
|
||||
{
|
||||
#if !HAVE_DECL_GETPASS
|
||||
extern char *getpass ();
|
||||
#endif
|
||||
char acct[50], *ap;
|
||||
|
||||
if (argc > 1)
|
||||
|
||||
Reference in New Issue
Block a user