gnupg2: Update from 2.2.5 to 2.2.6
[termux-packages] / packages / inetutils / ftp-getpass.patch
1 Submitted upstream at:
2 http://lists.gnu.org/archive/html/bug-inetutils/2016-10/msg00000.html
3
4 diff -u -r ../inetutils-1.9.4/ftp/cmds.c ./ftp/cmds.c
5 --- ../inetutils-1.9.4/ftp/cmds.c 2015-06-09 03:41:47.000000000 -0400
6 +++ ./ftp/cmds.c 2016-10-22 08:13:16.282265064 -0400
7 @@ -1721,6 +1721,9 @@
8 void
9 user (int argc, char **argv)
10 {
11 +# if !HAVE_DECL_GETPASS
12 + extern char *getpass ();
13 +# endif
14 char acct[80];
15 int n, aflag = 0;
16
17 @@ -2070,6 +2073,9 @@
18 void
19 account (int argc, char **argv)
20 {
21 +# if !HAVE_DECL_GETPASS
22 + extern char *getpass ();
23 +# endif
24 char acct[50], *ap;
25
26 if (argc > 1)
27 diff -u -r ../inetutils-1.9.4/ftp/ftp.c ./ftp/ftp.c
28 --- ../inetutils-1.9.4/ftp/ftp.c 2015-03-31 11:40:47.000000000 -0400
29 +++ ./ftp/ftp.c 2016-10-22 08:13:37.005945253 -0400
30 @@ -292,6 +292,9 @@
31 int
32 login (char *host)
33 {
34 +# if !HAVE_DECL_GETPASS
35 + extern char *getpass ();
36 +# endif
37 char tmp[80];
38 char *user, *pass, *acct;
39 int n, aflag = 0;