summaryrefslogtreecommitdiffstats
path: root/lib/libftpio
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-06-17 12:42:33 +0000
committerjkh <jkh@FreeBSD.org>1996-06-17 12:42:33 +0000
commit0a87e3a7fa8817e4601100fc52862340c63c099e (patch)
treee8e89dfa0c850c13e4698eea6d0d32cdfb08be1d /lib/libftpio
parent672da9a3d025ed96963b9d3c5a24bca8020a29ef (diff)
downloadFreeBSD-src-0a87e3a7fa8817e4601100fc52862340c63c099e.zip
FreeBSD-src-0a87e3a7fa8817e4601100fc52862340c63c099e.tar.gz
Add a feature: If the environment variable FTP_PASSIVE_MODE is defined
(the convention as established by pkg_install(1)), select passive mode FTP automatically.
Diffstat (limited to 'lib/libftpio')
-rw-r--r--lib/libftpio/ftpio.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libftpio/ftpio.c b/lib/libftpio/ftpio.c
index b5d58b8..feac7a5 100644
--- a/lib/libftpio/ftpio.c
+++ b/lib/libftpio/ftpio.c
@@ -14,7 +14,7 @@
* Turned inside out. Now returns xfers as new file ids, not as a special
* `state' of FTP_t
*
- * $Id: ftp.c,v 1.14 1995/06/11 19:29:55 rgrimes Exp $
+ * $Id: ftpio.c,v 1.1.1.1 1996/06/17 12:26:06 jkh Exp $
*
*/
@@ -328,6 +328,8 @@ ftp_new(void)
ftp->con_state = init;
ftp->errno = 0;
ftp->seek = 0;
+ if (getenv("FTP_PASSIVE_MODE"))
+ ftp->passive = 1;
return ftp;
}
OpenPOWER on IntegriCloud