mirror of
https://github.com/curl/curl.git
synced 2026-08-26 00:53:39 +03:00
tests: Cleaned up netrc testing.
Removed the "netrc_debug" keyword replaced with --netrc-file additions. Removed the debug code from Curl_parsenetrc as it is superseeded by --netrc-file.
This commit is contained in:
parent
06fc3569d2
commit
9f8e960a1a
8 changed files with 8 additions and 51 deletions
15
lib/netrc.c
15
lib/netrc.c
|
|
@ -80,21 +80,6 @@ int Curl_parsenetrc(const char *host,
|
|||
|
||||
#define NETRC DOT_CHAR "netrc"
|
||||
|
||||
#ifdef DEBUGBUILD
|
||||
{
|
||||
/* This is a hack to allow testing.
|
||||
* If compiled with --enable-debug and CURL_DEBUG_NETRC is defined,
|
||||
* then it's the path to a substitute .netrc for testing purposes *only* */
|
||||
|
||||
char *override = curl_getenv("CURL_DEBUG_NETRC");
|
||||
|
||||
if(override) {
|
||||
fprintf(stderr, "NETRC: overridden " NETRC " file: %s\n", override);
|
||||
netrcfile = override;
|
||||
netrc_alloc = TRUE;
|
||||
}
|
||||
}
|
||||
#endif /* DEBUGBUILD */
|
||||
if(!netrcfile) {
|
||||
home = curl_getenv("HOME"); /* portable environment reader */
|
||||
if(home) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue