aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1996-11-02 18:18:38 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1996-11-02 18:18:38 +0000
commita378b701cbe03ceab955e836f3a61a289bf443c8 (patch)
tree541328e143a26be4ed7199584691f25d1b553123 /usr.bin
parent5a52948cf66ce37fc3a6a3f2362ec76cad53a122 (diff)
Notes
Diffstat (limited to 'usr.bin')
-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 cca7a91937172..33e6a1b61e781 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) {