diff options
author | jkh <jkh@FreeBSD.org> | 1996-11-02 18:18:38 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-11-02 18:18:38 +0000 |
commit | 268001fc699b1d1b43efc6279bb61f1422376164 (patch) | |
tree | 541328e143a26be4ed7199584691f25d1b553123 | |
parent | 5f439a090fb0ccc09e03b6545135ed0d995766b3 (diff) | |
download | FreeBSD-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.
-rw-r--r-- | usr.bin/ftp/main.c | 2 |
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) { |