summaryrefslogtreecommitdiffstats
path: root/usr.bin/ftp
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-11-02 18:18:38 +0000
committerjkh <jkh@FreeBSD.org>1996-11-02 18:18:38 +0000
commit268001fc699b1d1b43efc6279bb61f1422376164 (patch)
tree541328e143a26be4ed7199584691f25d1b553123 /usr.bin/ftp
parent5f439a090fb0ccc09e03b6545135ed0d995766b3 (diff)
downloadFreeBSD-src-268001fc699b1d1b43efc6279bb61f1422376164.zip
FreeBSD-src-268001fc699b1d1b43efc6279bb61f1422376164.tar.gz
Apply a long-forgotten change to make FTP_PASSIVE_MODE just that
much more universal (in FreeBSD, anyway) in taking some of the pain out of firewalls.
Diffstat (limited to 'usr.bin/ftp')
-rw-r--r--usr.bin/ftp/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/ftp/main.c b/usr.bin/ftp/main.c
index cca7a919..33e6a1b 100644
--- a/usr.bin/ftp/main.c
+++ b/usr.bin/ftp/main.c
@@ -86,7 +86,7 @@ main(argc, argv)
cp = strrchr(argv[0], '/');
cp = (cp == NULL) ? argv[0] : cp+1;
- if (strcmp(cp, "pftp") == 0)
+ if (getenv("FTP_PASSIVE_MODE") || strcmp(cp, "pftp") == 0)
passivemode = 1;
while ((ch = getopt(argc, argv, "dginptvU")) != EOF) {
OpenPOWER on IntegriCloud