summaryrefslogtreecommitdiff
path: root/lib/libfetch/ftp.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2000-10-28 20:53:02 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2000-10-28 20:53:02 +0000
commit7ca2f6ae1f95016ed6ded5d5b4b68d50288b7714 (patch)
tree9824b2cece6e3b421b7360af82c1ea5b4aadb9c1 /lib/libfetch/ftp.c
parentf18255c68b21f980c3b9a09efadd289237afd68a (diff)
Notes
Diffstat (limited to 'lib/libfetch/ftp.c')
-rw-r--r--lib/libfetch/ftp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c
index ec74ba23aa03..30e8826c67e9 100644
--- a/lib/libfetch/ftp.c
+++ b/lib/libfetch/ftp.c
@@ -887,7 +887,7 @@ fetchXGetFTP(struct url *url, struct url_stat *us, char *flags)
int cd;
/* get the proxy URL, and check if we should use HTTP instead */
- if (flags && !strchr(flags, 'd') && (purl = _ftp_get_proxy()) != NULL) {
+ if (!(flags && strchr(flags, 'd')) && (purl = _ftp_get_proxy()) != NULL) {
if (strcasecmp(purl->scheme, SCHEME_HTTP) == 0)
return _http_request(url, "GET", us, purl, flags);
} else {
@@ -934,7 +934,7 @@ fetchPutFTP(struct url *url, char *flags)
int cd;
/* get the proxy URL, and check if we should use HTTP instead */
- if (flags && !strchr(flags, 'd') && (purl = _ftp_get_proxy()) != NULL) {
+ if (!(flags && strchr(flags, 'd')) && (purl = _ftp_get_proxy()) != NULL) {
if (strcasecmp(purl->scheme, SCHEME_HTTP) == 0)
/* XXX HTTP PUT is not implemented, so try without the proxy */
purl = NULL;
@@ -968,7 +968,7 @@ fetchStatFTP(struct url *url, struct url_stat *us, char *flags)
int cd;
/* get the proxy URL, and check if we should use HTTP instead */
- if (flags && !strchr(flags, 'd') && (purl = _ftp_get_proxy()) != NULL) {
+ if (!(flags && strchr(flags, 'd')) && (purl = _ftp_get_proxy()) != NULL) {
if (strcasecmp(purl->scheme, SCHEME_HTTP) == 0) {
FILE *f;