git: Use PCRE (#2350)
[termux-packages] / packages / inetutils / ftpd.c.patch
1 diff -u -r ../inetutils-1.9.3/ftpd/auth.c ./ftpd/auth.c
2 --- ../inetutils-1.9.3/ftpd/auth.c 2015-03-31 11:40:47.000000000 -0400
3 +++ ./ftpd/auth.c 2015-05-12 16:33:16.860147663 -0400
4 @@ -184,6 +184,9 @@
5 case AUTH_TYPE_PASSWD:
6 default:
7 {
8 +#ifdef __ANDROID__
9 + return -1;
10 +#else
11 char *xpasswd;
12 char *salt = pcred->passwd;
13 /* Try to authenticate the user. */
14 @@ -191,6 +194,7 @@
15 return 1; /* Failed. */
16 xpasswd = crypt (passwd, salt);
17 return (!xpasswd || strcmp (xpasswd, pcred->passwd) != 0);
18 +#endif
19 }
20 } /* switch (auth_type) */
21 return -1;