diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/piesctl-cl.opt | 6 | ||||
-rw-r--r-- | src/piesctl.c | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/piesctl-cl.opt b/src/piesctl-cl.opt index f7eaf2a..ebdfec4 100644 --- a/src/piesctl-cl.opt +++ b/src/piesctl-cl.opt | |||
@@ -71,2 +71,8 @@ END | |||
71 | 71 | ||
72 | OPTION(no-netrc,N,, | ||
73 | [<don't read ~/.netrc file>]) | ||
74 | BEGIN | ||
75 | no_netrc_option = 1; | ||
76 | END | ||
77 | |||
72 | GROUP(Preprocessor) | 78 | GROUP(Preprocessor) |
diff --git a/src/piesctl.c b/src/piesctl.c index 0cd2736..4c777d7 100644 --- a/src/piesctl.c +++ b/src/piesctl.c | |||
@@ -51,2 +51,3 @@ char default_config_file[] = SYSCONFDIR "/piesctl.conf"; | |||
51 | int preprocess_only; | 51 | int preprocess_only; |
52 | int no_netrc_option; | ||
52 | int verbose; | 53 | int verbose; |
@@ -545,3 +546,4 @@ shttp_connect (struct pies_url *url, struct grecs_sockaddr *source_addr) | |||
545 | 546 | ||
546 | netrc_scan (conn->url); | 547 | if (!no_netrc_option) |
548 | netrc_scan (conn->url); | ||
547 | 549 | ||