From 0a87e3a7fa8817e4601100fc52862340c63c099e Mon Sep 17 00:00:00 2001 From: jkh Date: Mon, 17 Jun 1996 12:42:33 +0000 Subject: 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. --- lib/libftpio/ftpio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/libftpio') 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; } -- cgit v1.1