aboutsummaryrefslogtreecommitdiff
path: root/src/piesctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/piesctl.c')
-rw-r--r--src/piesctl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/piesctl.c b/src/piesctl.c
index 0cd2736..4c777d7 100644
--- a/src/piesctl.c
+++ b/src/piesctl.c
@@ -46,12 +46,13 @@ struct client_conn
struct grecs_sockaddr *source_addr;
} client;
char const *instance = "pies";
char *config_file;
char default_config_file[] = SYSCONFDIR "/piesctl.conf";
int preprocess_only;
+int no_netrc_option;
int verbose;
int dump;
struct grecs_sockaddr_hints hints = { .flags = GRECS_AH_PASSIVE };
#define EX_OK 0
@@ -540,13 +541,14 @@ shttp_connect (struct pies_url *url, struct grecs_sockaddr *source_addr)
conn = grecs_zalloc (sizeof (*conn));
conn->fp = fp;
if (pies_url_copy (&conn->url, url))
grecs_alloc_die ();
- netrc_scan (conn->url);
+ if (!no_netrc_option)
+ netrc_scan (conn->url);
return conn;
}
static void
shttp_auth_free (struct shttp_connection *conn)

Return to:

Send suggestions and report system problems to the System administrator.