lib/curl: remove .netrc support on Android

Not needed on Android, and the implementation uses getpwuid_r() which
is unavailable on old Android versions.
This commit is contained in:
Max Kellermann 2018-02-09 23:07:49 +01:00
parent 3859a50466
commit 9187a08106
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,20 @@
Index: curl-7.58.0/lib/url.c
===================================================================
--- curl-7.58.0.orig/lib/url.c
+++ curl-7.58.0/lib/url.c
@@ -3503,6 +3503,7 @@ static CURLcode override_login(struct Cu
}
conn->bits.netrc = FALSE;
+#ifndef __BIONIC__
if(data->set.use_netrc != CURL_NETRC_IGNORED) {
int ret = Curl_parsenetrc(conn->host.name,
userp, passwdp,
@@ -3524,6 +3525,7 @@ static CURLcode override_login(struct Cu
conn->bits.user_passwd = TRUE; /* enable user+password */
}
}
+#endif
return CURLE_OK;
}

View File

@ -1 +1,2 @@
only_lib.patch
no_netrc.patch